ITexture2D

All Implemented Interfaces: com.aspose.threed.ITextureUnit

public interface ITexture2D extends ITextureUnit

2D texture

Methods

MethodDescription
load(TextureData bitmap)Load texture content from specified Bitmap
save(TextureData bitmap)Save the texture content to external file.
save(String path, String format)Save the texture content to external file.
toBitmap()Convert the texture unit to TextureData instance

load(TextureData bitmap)

public abstract void load(TextureData bitmap)

Load texture content from specified Bitmap

Parameters:

ParameterTypeDescription
bitmapTextureData

save(TextureData bitmap)

public abstract void save(TextureData bitmap)

Save the texture content to external file.

Parameters:

ParameterTypeDescription
bitmapTextureDataResult bitmap to save.

save(String path, String format)

public abstract void save(String path, String format)

Save the texture content to external file.

Parameters:

ParameterTypeDescription
pathjava.lang.StringFile name to save.
formatjava.lang.StringImage format

toBitmap()

public abstract TextureData toBitmap()

Convert the texture unit to TextureData instance

Returns: TextureData