Dgs-dximage: Difference between revisions
Jump to navigation
Jump to search
Line 29: | Line 29: | ||
*'''rotation''' : The rotation, in degrees for the image. | *'''rotation''' : The rotation, in degrees for the image. | ||
=== | ===UVSize=== | ||
The uv size of image section. ''Learn More [[dxDrawImageSection]]''. | The uv size of image section. ''Learn More [[dxDrawImageSection]]''. | ||
<syntaxhighlight lang="lua">dgsSetProperty(image," | <syntaxhighlight lang="lua">dgsSetProperty(image,"UVSize",{USize,VSize,relative})</syntaxhighlight> | ||
*''' | *'''USize''' : The width of the U size of image. | ||
*''' | *'''VSize''' : The height of the V size of image. | ||
*'''relative''' :This determines whether UV size is relative. If this is true, then UV size floats must be between 0 and 1, representing UV sizes relative to the pixels of the texture loaded. | |||
===imagepos=== | ===imagepos=== |
Revision as of 14:03, 5 November 2018
DGS Properties is always used to change the gui style and make it more fantastic.
This page shows the properties of dgs-dximage that you could use.
Main Functions
Properties
image
This is equivalent to dgsImageSetImage/dgsImageGetImage.
dgsSetProperty(image,"image",texture)
- texture : A material element (texture/shader/screen source/render target) of the image.
color
The color which can be translated by tocolor of the image.
dgsSetProperty(image,"color",color)
- color : An integer of the color of the image.
rotationCenter
The rotation center of the image. Learn More dxDrawImage.
dgsSetProperty(image,"rotationCenter",{xoffset,yoffset})
- xoffset : The relative X (0~1) offset from the image center for which to rotate the image from.
- yoffset : The relative Y (0~1) offset from the image center for which to rotate the image from.
rotation
The rotation of the image. Learn More dxDrawImage.
dgsSetProperty(image,"rotation",rotation)
- rotation : The rotation, in degrees for the image.
UVSize
The uv size of image section. Learn More dxDrawImageSection.
dgsSetProperty(image,"UVSize",{USize,VSize,relative})
- USize : The width of the U size of image.
- VSize : The height of the V size of image.
- relative :This determines whether UV size is relative. If this is true, then UV size floats must be between 0 and 1, representing UV sizes relative to the pixels of the texture loaded.
imagepos
The uv position image section. Learn More dxDrawImageSection.
dgsSetProperty(image,"imagepos",{upos,vpos})
- upos : the absolute X coordinate of the top left corner of the section which should be drawn from image.
- vpos : the absolute Y coordinate of the top left corner of the section which should be drawn from image.
See Also
General Properties
Unique Properties For DGS Core Elements
- dgs-dx3dinterface
- dgs-dx3dimage
- dgs-dx3dtext
- dgs-dx3dline
- dgs-dxbutton
- dgs-dxcheckbox
- dgs-dxcombobox
- dgs-dxdetectarea
- dgs-dxedit
- dgs-dxgridlist
- dgs-dximage
- dgs-dxlabel
- dgs-dxline
- dgs-dxmemo
- dgs-dxprogressbar
- dgs-dxradiobutton
- dgs-dxscrollbar
- dgs-dxscrollpane
- dgs-dxselector
- dgs-dxswitchbutton
- dgs-dxtabpanel
- dgs-dxtab
- dgs-dxwindow