public class WebPImage
extends java.lang.Object
WebPFrame
.Modifier and Type | Method and Description |
---|---|
static WebPImage |
create(byte[] source)
Creates a
WebPImage from the specified encoded data. |
static WebPImage |
create(long nativePtr,
int sizeInBytes) |
void |
dispose() |
boolean |
doesRenderSupportScaling() |
protected void |
finalize() |
int |
getDuration() |
WebPFrame |
getFrame(int frameNumber) |
int |
getFrameCount() |
int[] |
getFrameDurations() |
int |
getHeight() |
int |
getLoopCount() |
int |
getSizeInBytes() |
int |
getWidth() |
int |
lastKeyFrameInRange(int start,
int end) |
protected void finalize()
finalize
in class java.lang.Object
public void dispose()
public static WebPImage create(byte[] source)
WebPImage
from the specified encoded data. This will throw if it fails
to create. This is meant to be called on a worker thread.source
- the data to the image (a copy will be made)public static WebPImage create(long nativePtr, int sizeInBytes)
public int getWidth()
public int getHeight()
public int getFrameCount()
public int getDuration()
public int[] getFrameDurations()
public int getLoopCount()
public WebPFrame getFrame(int frameNumber)
public int getSizeInBytes()
public boolean doesRenderSupportScaling()
public int lastKeyFrameInRange(int start, int end)