DAZ Script | |
---|---|
Object | getExporterInfo ( Number i ) |
Size | getImageSize ( String imagePath ) |
Object | getImporterInfo ( Number i ) |
Number | getNumExporters () |
Number | getNumImporters () |
void | autoRefreshChanged ( Boolean onOff ) |
void | imageListChanged () |
Responsible for the management of image (texture) importers/exporters, as well as the lifetime (loading/unloading) and preparation (for display/rendering) of images used as textures for scene items.
There is only one instance of this manager in an application. This instance is created and owned by DzApp. Request the instance via DzApp::getImageMgr().
See Also:
Object : getExporterInfo( Number i )
Gets exporter information.
Parameter(s):
Return Value:
Since:
Size : getImageSize( String imagePath )
Parameter(s):
Return Value:
Since:
Object : getImporterInfo( Number i )
Gets importer information.
Parameter(s):
Return Value:
Since:
Return Value:
Since:
Return Value:
Since:
void : beginEditingImage()
Called prior to editing an image; pauses image preparation.
DzLayeredTexture : createLayeredTexture( String name )
Parameter(s):
Return Value:
void : deleteUnusedTextureObjects()
This method is called from the 3D viewports to clear out any texture objects that are no longer being used. It has to be called only when a Studio OGL context is current.
DzTexture : findImage( String fullPath )
Parameter(s):
Return Value:
DzTexture : findImageByName( String name )
Parameter(s):
Return Value:
DzLayeredTexture : findLayeredTexture( DzUri uri )
Parameter(s):
Return Value:
DzTexture : findTexture( DzUri uri )
Parameter(s):
Return Value:
void : finishedEditingImage( DzTexture img )
Called after editing an image; restarts image preparation.
Parameter(s):
DzTexture : getImage( Number which )
Parameter(s):
Return Value:
DzTexture : getImage( String fullPath, Number creationGamma )
Parameter(s):
Return Value:
DzTexture : getImage( String fullPath )
Parameter(s):
Return Value:
DzTexture : getImage( String fullPath, Number creationGamma, Number creationType )
Parameter(s):
Return Value:
Return Value:
Return Value:
Number : getNumImages()
Return Value:
String : getUniqueImageName( String name )
Creates a modified version of the given name if necessary to make it unique.
Parameter(s):
Return Value:
void : imagePrepared( DzTexture img, String tempName )
Called by the framework to notify the manager that the image has been prepared for the off-line renderer.
Parameter(s):
Image : loadImage( String filename )
Reads an image from a file.
Parameter(s):
Return Value:
DzError : loadImage( String filename, Image img, Number importerIdx=-1 )
Reads an image from a file.
Parameter(s):
Return Value:
void : prepareAllImages( DzRenderer r )
Forces a flush of the background image processing buffer.
Parameter(s):
void : refresh()
Reloads any images whose source files have changed.
DzError : saveImage( String filename, Image image, Number exporterIdx=-1 )
Writes an image to a file.
Parameter(s):
Return Value:
void : setImageOpenPath( String path )
Sets the file path that a file open dialog will point to for images.
Parameter(s):
void : setImageSavePath( String path )
Sets the file path that a file save dialog will point to for images.
Parameter(s):
void : autoRefreshChanged( Boolean onOff )
Signature:“autoRefreshChanged(bool)”
Emitted when the auto refresh state changes.
void : imageListChanged()
Signature:“imageListChanged()”
Emitted when an image is added to or removed from the list.