Definition at line 13 of file Image.java.
◆ Image()
org.skia.jetski.Image.Image |
( |
long |
nativeInstance | ) |
|
|
inlinepackage |
Definition at line 75 of file Image.java.
75 {
76 mNativeInstance = nativeInstance;
77 }
◆ finalize()
void org.skia.jetski.Image.finalize |
( |
| ) |
throws Throwable |
|
inlineprotected |
◆ fromEncoded()
static Image org.skia.jetski.Image.fromEncoded |
( |
byte[] |
encodedData | ) |
|
|
inlinestatic |
Construct an Image from encoded (PNG, GIF, etc) data.
Returns null for unsupported formats or invalid data.
Definition at line 21 of file Image.java.
21 {
22 long nativeImage = nCreate(encodedData);
23 return nativeImage != 0
24 ?
new Image(nativeImage)
25 : null;
26 }
Image(long nativeInstance)
◆ fromStream()
static Image org.skia.jetski.Image.fromStream |
( |
InputStream |
encodedStream | ) |
throws java.io.IOException |
|
inlinestatic |
Construct an Image from an encoded data stream.
Returns null for unsupported formats or invalid stream.
Definition at line 33 of file Image.java.
33 {
34 byte[] encodedData = new byte[encodedStream.available()];
35 encodedStream.read(encodedData);
36
38 }
static Image fromEncoded(byte[] encodedData)
◆ getHeight()
int org.skia.jetski.Image.getHeight |
( |
| ) |
|
|
inline |
Definition at line 44 of file Image.java.
44 {
45 return nGetHeight(mNativeInstance);
46 }
◆ getNativeInstance()
long org.skia.jetski.Image.getNativeInstance |
( |
| ) |
|
|
inlinepackage |
Definition at line 80 of file Image.java.
80{ return mNativeInstance; }
◆ getWidth()
int org.skia.jetski.Image.getWidth |
( |
| ) |
|
|
inline |
Definition at line 40 of file Image.java.
40 {
41 return nGetWidth(mNativeInstance);
42 }
◆ makeShader() [1/2]
Definition at line 48 of file Image.java.
48 {
50 }
Shader makeShader(TileMode tmx, TileMode tmy, SamplingOptions sampling)
SkSamplingOptions sampling
◆ makeShader() [2/2]
Definition at line 52 of file Image.java.
53 {
54 long nativeMatrix = localMatrix != null ? localMatrix.getNativeInstance() : 0;
55 return new Shader(nMakeShader(mNativeInstance,
tmx.nativeInt,
tmy.nativeInt,
58 nativeMatrix));
59 }
◆ release()
void org.skia.jetski.Image.release |
( |
| ) |
|
|
inline |
Releases any resources associated with this Paint.
Definition at line 64 of file Image.java.
64 {
65 nRelease(mNativeInstance);
66 mNativeInstance = 0;
67 }
The documentation for this class was generated from the following file:
- third_party/skia/platform_tools/android/apps/jetski/src/main/java/org/skia/jetski/Image.java