DAZ Script | |
---|---|
void | fill ( Color color ) |
void | fromImage ( Image image ) |
Boolean | isNull () |
Boolean | load ( String filename, String format=“” ) |
Boolean | loadFromData ( ByteArray data, String format=“” ) |
void | resize ( Number width, Number height ) |
void | resize ( Size size ) |
void | save ( String filename ) |
Image | toImage () |
This is the script counterpart to the QPixmap type used in the C++ SDK.
Attention:
The color depth of the pixmap (Read-Only)
The height of the pixmap in pixels (Read-Only)
The enclosing rectangle of the pixmap in pixels (Read-Only)
The size of the pixmap (Read-Only)
The width of the pixmap in pixels (Read-Only)
Pixmap()
Default Constructor.
Pixmap( Pixmap pixmap )
Copy Constructor.
Parameter(s):
Parameter(s):
Fills the pixmap with color
.
Parameter(s):
void : fromImage( Image image )
Parameter(s):
See Also:
Since:
Gets whether or not the pixmap is Null.
Return Value:
Boolean : load( String filename, String format=“” )
Loads data into the pixmap 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 pixmap 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 4.10.0.88)void : resize( Number width, Number height )
Resizes the pixmap.
Parameter(s):
Resizes the pixmap.
Parameter(s):
void : save( String filename )
Saves the pixmap to a file.
Parameter(s):
Return Value:
See Also:
Since: