DAZ Script | |
---|---|
void | addLayer ( DzImageLayer (deprecated) layer ) |
Image | getFlattenedImage ( Boolean freeMem=false ) |
DzImageLayer (deprecated) | getLayer ( Number which ) |
Number | getLayerCount () |
Size | getSize () |
void | insertLayer ( DzImageLayer (deprecated) layer, Number idx ) |
void | moveLayer ( Number from, Number to ) |
Boolean | removeLayer ( DzImageLayer (deprecated) layer ) |
Boolean | replaceLayer ( DzImageLayer (deprecated) oldLayer, DzImageLayer (deprecated) newLayer ) |
void | setSize ( Size size ) |
Boolean | toLayeredTexture ( DzLayeredTexture img ) |
void | layerListChanged () |
void | sizeChanged ( Size size ) |
Deprecated
This class exists only to keep code written prior to 4.6.2.23 working. Do not use in new code. Use DzLayeredTexture instead.
This class uses explicit sharing to make it very efficient to copy. This does, however, mean that modifying one copy of the image modifies all copies. DzLayeredImage does not currently support detach() or copy() functions for creating unique instances or deep copies.
void : addLayer( DzImageLayer (deprecated) layer )
Add a layer to the image.
Parameter(s):
Image : getFlattenedImage( Boolean freeMem=false )
Parameter(s):
true
, any image layers loaded from file will be unloaded immediately after flattening. They will have to be re-loaded again for future flattening operations.Return Value:
DzImageLayer (deprecated) : getLayer( Number which )
Return Value:
which
. This object is owned by the image.Number : getLayerCount()
Return Value:
Return Value:
void : insertLayer( DzImageLayer (deprecated) layer, Number idx )
Insert a layer at a specific index.
Parameter(s):
void : moveLayer( Number from, Number to )
Adjust layer order.
Parameter(s):
Boolean : removeLayer( DzImageLayer (deprecated) layer )
Remove the specified layer.
Parameter(s):
Return Value:
true
if the layer was removed from the image, otherwise false
.Boolean : replaceLayer( DzImageLayer (deprecated) oldLayer, DzImageLayer (deprecated) newLayer )
Replace a layer with a new layer.
Parameter(s):
Return Value:
true
if the layer was successfully replaced, otherwise false
.Sets the size of the image's canvas.
Parameter(s):
Boolean : toLayeredTexture( DzLayeredTexture img )
Parameter(s):
Return Value:
true
if the image was successfully copied to img
, otherwise false
.void : layerListChanged()
Emits a signal when the list of layers has changed.
void : sizeChanged( Size size )
Signature:“sizeChanged(const QSize&)”
Emits a signal that the size of canvas has changed.
Parameter(s):