Inheritance diagram for Image:

This is the DAZ Script counterpart of the QImage type used in the DAZ Studio SDK.
| Image::Image | ( | ) |
Default Constructor.
| Image::Image | ( | String | filename | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| filename | The name of the file to load the image's data from |
| Image::Image | ( | Image | image | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| image | The image to copy |
Gets a color value from the color table for the image only valid for
| index | The index of the color to look up in the table |
Creates a copy of the image with the given color depth
| depth | The color depth to convert the image to |
Creates a copy of a portion of the image
| rect | The area to copy |
Creates a copy of a portion of the image
| x | The x position of the area to copy | |
| y | The y position of the area to copy | |
| w | The width of the area to copy | |
| h | The height of the area to copy |
| Image Image::copy | ( | ) |
Creates a copy of the image
Clears the image data and creates a new image with the given settings
| size | The new size for the image | |
| depth | The new color depth for the image | |
| numColors | The number of colors for the new image |
Clears the image data and creates a new image with the given settings
| w | The new width for the image | |
| h | The new height for the image | |
| depth | The new color depth for the image | |
| numColors | The number of colors for the new image |
| void Image::fill | ( | Color | color | ) |
Fills the image with color.
| color | The color to set the pixels of the image. |
Inverts all pixels in the image.
| invertAlpha | If the image has a 32 bit depth, and this is true, the alpha channel will also be inverted, otherwise the alpha channel is unaffected. |
| Boolean Image::isNull | ( | ) |
Gets whether or not the image is Null.
| void Image::load | ( | String | filename | ) |
Loads data for the image from a file
| filename | The name of the file to load into the image |
| Image Image::mirror | ( | bool | horizontal, | |
| bool | vertical | |||
| ) |
Creates a copy of this image that has been mirrored
| horizontal | If true, the image will be mirrored horizontally | |
| vertical | If true, the image will be mirrored vertically |
| Image Image::mirror | ( | ) |
Creates a copy of this image that has been mirrored vertically
Gets the color value of an individual pixel
| x | The x position of the pixel | |
| y | The y position of the pixel |
| void Image::save | ( | String | filename | ) |
Saves the image to a file.
| filename | The name of the file to save the image to. |
Creates a new image that is a scaled version of this image
| width | The width of the new image | |
| height | The hieght of the new image |
Creates a new image that is a scaled version of this image
| size | The size of the new image |
Sets the color value of a color in the color table.
| index | The index of the color in the color table to change | |
| color | The new value for the color. |
Sets the color value of the given pixel
| x | The x position of the pixel to change | |
| y | The y position of the pixel to change | |
| color | The new value for the pixel |
Creates a new image that is a scaled version of this image
| width | The width of the new image | |
| height | The hieght of the new image |
Creates a new image that is a scaled version of this image
| size | The size of the new image |
| Image Image::swapRGB | ( | ) |
Creates a copy of the image in which the Red and Blue values have been swapped
Whether or not the image has an alpha channel
The color depth of the image (Read-Only)
The X resolution of the image
The Y resolution of the image
The height of the image (Read-Only)
The number of colors in the image
The number of pixels to offset the image when positioning it
The enclosing rectangle of the image (Read-Only)
The size of the image (Read-Only)
The width of the image (Read-Only)