Class AEImage
Inheritance
java.lang.Object
AEImage
Syntax
public class AEImage implements AssetI
Constructors
AEImage(PathHandle file)
Declaration
public AEImage(PathHandle file)
Parameters
AEImage(PathHandle file, int w, int h, int channels, int format, ByteBuffer image)
Declaration
public AEImage(PathHandle file, int w, int h, int channels, int format, ByteBuffer image)
Parameters
Type |
Name |
Description |
PathHandle |
file |
|
int |
w |
|
int |
h |
|
int |
channels |
|
int |
format |
|
ByteBuffer |
image |
|
Methods
decAndGetRef()
Declaration
public int decAndGetRef()
Returns
Overrides
decRef()
Decrements the asset's reference count by one.
Declaration
Overrides
dispose()
Declaration
Overrides
getData()
Declaration
public PixelMap getData()
Returns
getImage()
Declaration
public PixelMap getImage()
Returns
Declaration
public ImageMetaData getImageMetaData()
Returns
getLogger()
Declaration
public static Logger getLogger()
Returns
getRefs()
Returns the integer representation of the references.
Declaration
Returns
Type |
Description |
int |
The count of refrences.
|
Overrides
incAndGetRef()
Declaration
public int incAndGetRef()
Returns
Overrides
incRef()
Increments the asset's reference count by one.
Declaration
Overrides
loadImage(PathHandle file)
Declaration
public static PixelMap loadImage(PathHandle file)
Parameters
Returns
premultiplyAlpha(PixelMap image)
Declaration
public static void premultiplyAlpha(PixelMap image)
Parameters
resize(AEImage src, int newW, int newH)
Takes a AEImage as input and then returns a AEImage instance of the resized version on src.
Declaration
public static AEImage resize(AEImage src, int newW, int newH)
Parameters
Type |
Name |
Description |
AEImage |
src |
|
int |
newW |
|
int |
newH |
|
Returns
setImage(PixelMap image)
Declaration
public void setImage(PixelMap image)
Parameters
Declaration
public void setMd(ImageMetaData md)
Parameters