DAZ Script | |
---|---|
Color | color ( Number index ) |
Image | compositeAtop ( Image other, int x=0, int y=0 ) |
Image | compositeColorBurn ( Image other, int x=0, int y=0 ) |
Image | compositeColorDodge ( Image other, int x=0, int y=0 ) |
Image | compositeDarken ( Image other, int x=0, int y=0 ) |
Image | compositeDifference ( Image other, int x=0, int y=0 ) |
Image | compositeExclusion ( Image other, int x=0, int y=0 ) |
Image | compositeHardLight ( Image other, int x=0, int y=0 ) |
Image | compositeIn ( Image other, int x=0, int y=0 ) |
Image | compositeLighten ( Image other, int x=0, int y=0 ) |
Image | compositeMultiply ( Image other, int x=0, int y=0 ) |
Image | compositeOut ( Image other, int x=0, int y=0 ) |
Image | compositeOver ( Image other, Number x=0, Number y=0 ) |
Image | compositeOverlay ( Image other, int x=0, int y=0 ) |
Image | compositePlus ( Image other, int x=0, int y=0 ) |
Image | compositeScreen ( Image other, int x=0, int y=0 ) |
Image | compositeSoftLight ( Image other, int x=0, int y=0 ) |
Image | compositeXor ( Image other, int x=0, int y=0 ) |
Image | convertDepth ( Number depth ) |
Image | copy ( Number x, Number y, Number w, Number h ) |
Image | copy ( Rect rect ) |
Image | copy () |
void | create ( Number w, Number h, Number depth, Number numColors=0 ) |
void | create ( Size size, Number depth, Number numColors=0 ) |
Rect | drawText ( Number x, Number y, String text, Font font, Color color, Number flags=0 ) |
void | fill ( Color color ) |
Image | getColorMask ( Color maskColor, Boolean invert=false, Number tolerance=0 ) |
void | invertPixels ( Boolean invertAlpha=true ) |
Boolean | isNull () |
Boolean | load ( String filename, String format=“” ) |
Boolean | loadFromData ( ByteArray data, String format=“” ) |
Image | mirror () |
Image | mirror ( bool horizontal, bool vertical ) |
Color | pixel ( Number x, Number y ) |
void | save ( String filename ) |
Image | scale ( Size size ) |
Image | scale ( Number width, Number height ) |
Boolean | setAlphaFromImage ( Image img ) |
void | setColor ( Number index, Color color ) |
void | setPixel ( Number x, Number y, Color color ) |
void | setText ( String key, String text ) |
Image | smoothScale ( Number width, Number height ) |
Image | smoothScale ( Size size ) |
Image | swapRGB () |
void | text ( String key=“” ) |
Array | textKeys () |
This is the script counterpart to the QImage type used in the C++ SDK.
Attention:
Supported image formats.
Since:
Holds whether or not the image has an alpha channel.
Holds the color depth of the image. (Read-Only)
Holds the X resolution of the image.
Holds the Y resolution of the image.
Holds the format of the image.
Since:
Holds the height of the image. (Read-Only)
Holds the number of colors in the image.
Holds the number of pixels to offset the image when positioning it.
Holds the number of pixels to offset the image when positioning it.
Holds the width of the image. (Read-Only)
Image()
Default Constructor.
Image( Number width, Number height, Format format )
Parameter(s):
Since:
Image( Image image )
Copy Constructor.
Parameter(s):
Parameter(s):
Gets a color value from the color table for the image only valid for.
Parameter(s):
Return Value:
Image : compositeAtop( Image other, int x=0, int y=0 )
Parameter(s):
other
.other
.Return Value:
other
and the alpha of this image is reduced by the alpha of other
.Since:
Image : compositeColorBurn( Image other, int x=0, int y=0 )
Parameter(s):
other
.other
.Return Value:
other
color is darkened to reflect the color of this image. White in this image leaves the other
color unchanged.Since:
Image : compositeColorDodge( Image other, int x=0, int y=0 )
Parameter(s):
other
.other
.Return Value:
other
color is brightened to reflect the color of this image. Black in this image leaves the other
color unchanged.Since:
Image : compositeDarken( Image other, int x=0, int y=0 )
Parameter(s):
other
.other
.Return Value:
other
is selected.Since:
Image : compositeDifference( Image other, int x=0, int y=0 )
Parameter(s):
other
.other
.Return Value:
other
is subtracted from the lighter. White in this image inverts the color in other
, whereas black leaves the color of other
unchanged.Since:
Image : compositeExclusion( Image other, int x=0, int y=0 )
Parameter(s):
other
.other
.Return Value:
other
is subtracted from the lighter. White in this image inverts the color in other
, whereas black leaves the color of other
unchanged.Since:
Image : compositeHardLight( Image other, int x=0, int y=0 )
Parameter(s):
other
.other
.Return Value:
other
are multiplied or screened depending on the color of this image. A light color in this image will lighten the other
color, whereas a dark color in this image will darken the other
color.Since:
Image : compositeIn( Image other, int x=0, int y=0 )
Parameter(s):
other
.other
.Return Value:
other
.Since:
Image : compositeLighten( Image other, int x=0, int y=0 )
Parameter(s):
other
.other
.Return Value:
other
is selected.Since:
Image : compositeMultiply( Image other, int x=0, int y=0 )
Parameter(s):
other
.other
.Return Value:
other
are multiplied together.Attention:
Since:
Image : compositeOut( Image other, int x=0, int y=0 )
Parameter(s):
other
.other
.Return Value:
other
.Since:
Image : compositeOver( Image other, Number x=0, Number y=0 )
Parameter(s):
other
.other
.Return Value:
other
.Since:
Image : compositeOverlay( Image other, int x=0, int y=0 )
Parameter(s):
other
.other
.Return Value:
other
are multiplied or screened depending on other
color. The other
color is mixed with this color to reflect the lightness or darkness of other
.Since:
Image : compositePlus( Image other, int x=0, int y=0 )
Parameter(s):
other
.other
.Return Value:
other
are added together.Since:
Image : compositeScreen( Image other, int x=0, int y=0 )
Parameter(s):
other
.other
.Return Value:
other
are multiplied together.Attention:
Since:
Image : compositeSoftLight( Image other, int x=0, int y=0 )
Parameter(s):
other
.other
.Return Value:
other
are darkened or lightened depending on the color of this image.Since:
Image : compositeXor( Image other, int x=0, int y=0 )
Parameter(s):
other
.other
.Return Value:
other
, is merged with other
, and whose alpha is reduced by the inverse of this image alpha.Since:
Image : convertDepth( Number depth )
Creates a copy of the image with the given color depth.
Parameter(s):
Return Value:
Image : copy( Number x, Number y, Number w, Number h )
Creates a copy of a portion of the image.
Parameter(s):
Return Value:
Creates a copy of a portion of the image.
Parameter(s):
Return Value:
Image : copy()
Creates a copy of the image.
Return Value:
void : create( Number w, Number h, Number depth, Number numColors=0 )
Clears the image data and creates a new image with the given settings.
Parameter(s):
void : create( Size size, Number depth, Number numColors=0 )
Clears the image data and creates a new image with the given settings.
Parameter(s):
Rect : drawText( Number x, Number y, String text, Font font, Color color, Number flags=0 )
Parameter(s):
Return Value:
Since:
Fills the image with color
.
Parameter(s):
Image : getColorMask( Color maskColor, Boolean invert=false, Number tolerance=0 )
Parameter(s):
true
, the mask is inverted.maskColor
to consider as maskColor
.Return Value:
Since:
void : invertPixels( Boolean invertAlpha=true )
Inverts all pixels in the image.
Parameter(s):
true
, the alpha channel will also be inverted, otherwise the alpha channel is unaffected.Gets whether or not the image is Null.
Return Value:
true
if the image is Null (empty), otherwise .Boolean : load( String filename, String format=“” )
Loads data for the image from a file.
Parameter(s):
filename.If
this is an empty string (default), an image format will be chosen from fileName
extension. Supported image formats are BMP, GIF, JPG, JPEG, PNG, PBM, PGM, PPM, XBM, XPM and SVG. (since 4.11.0.155)Return Value:
true
if the data was loaded, otherwise false
. (since 4.11.0.155)Boolean : loadFromData( ByteArray data, String format=“” )
Loads data into the image from a byte array using the specified format
.
Parameter(s):
data
. Supported image formats are BMP, GIF, JPG, JPEG, PNG, PBM, PGM, PPM, XBM, XPM and SVG.Return Value:
true
if the data was loaded, otherwise false
.Since:
Image : mirror()
Creates a copy of this image that has been mirrored vertically.
Return Value:
Image : mirror( bool horizontal, bool vertical )
Creates a copy of this image that has been mirrored.
Parameter(s):
true
, the image will be mirrored horizontally.true
, the image will be mirrored vertically.Return Value:
Color : pixel( Number x, Number y )
Gets the color value of an individual pixel.
Parameter(s):
Return Value:
void : save( String filename )
Saves the image to a file.
Parameter(s):
Creates a new image that is a scaled version of this image.
Parameter(s):
Return Value:
Image : scale( Number width, Number height )
Creates a new image that is a scaled version of this image.
Parameter(s):
Return Value:
Boolean : setAlphaFromImage( Image img )
Parameter(s):
Return Value:
false
if img
is null, otherwise true
.Since:
void : setColor( Number index, Color color )
Sets the color value of a color in the color table.
Parameter(s):
void : setPixel( Number x, Number y, Color color )
Sets the color value of the given pixel.
Parameter(s):
void : setText( String key, String text )
Sets the image text to text
and associates it with key
.
If you want to store a single text block (i.e., a “comment” or description), you can either pass an empty key, or use a generic key like “Description”.
The image text is embedded into the image data when you call save(). Not all image formats support embedded text.
Parameter(s):
See Also:
Since:
Image : smoothScale( Number width, Number height )
Creates a new image that is a scaled version of this image.
Parameter(s):
Return Value:
Image : smoothScale( Size size )
Creates a new image that is a scaled version of this image.
Parameter(s):
Return Value:
Image : swapRGB()
Creates a copy of the image in which the Red and Blue values have been swapped.
Return Value:
Parameter(s):
Return Value:
key
. If key
is an empty string, the whole embedded text is returned, with each key-text pair separated by a newline.See Also:
Since:
Return Value:
See Also:
Since: