Top Inners Fields Constructors Methods
com.sun.prism

public Class Image

extends Object
implements PlatformImage
Class Inheritance
All Implemented Interfaces
com.sun.javafx.tk.PlatformImage
Imports
com.sun.javafx.image.AlphaType, .BytePixelGetter, .BytePixelSetter, .ByteToBytePixelConverter, .ByteToIntPixelConverter, .IntPixelGetter, .IntPixelSetter, .IntToBytePixelConverter, .IntToIntPixelConverter, .PixelConverter, .PixelGetter, .PixelSetter, .PixelUtils, com.sun.javafx.image.impl.ByteIndexed, .EightBitIndexed, .FourBitIndexed, .OneBitIndexed, .TwoBitIndexed, .ByteAbgr, .ByteBgr, .ByteBgra, .ByteBgraPre, .ByteGray, .ByteGrayAlpha, .ByteGrayAlphaPre, .ByteRgb, .ByteRgba, .IntArgb, .IntBgr, .IntRgb, javafx.scene.image.PixelReader, .WritablePixelFormat, javafx.util.Pair, java.nio.Buffer, .ByteBuffer, .FloatBuffer, .IntBuffer, com.sun.javafx.geom.Rectangle, com.sun.javafx.iio.ImageFrame, .ImageStorage, com.sun.javafx.tk.PlatformImage, com.sun.prism.impl.BufferUtil

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv abstract class
pack-priv abstract class
pack-priv class
pack-priv class
pack-priv class
pack-priv class
public static class
pack-priv class

Field Summary

Modifier and TypeField and Description
pack-priv static final WritablePixelFormat<ByteBuffer>
pack-priv static PixelFormat<ByteBuffer>
pack-priv static final PixelFormat<ByteBuffer>
pack-priv static final WritablePixelFormat<IntBuffer>
private final int
private final int
private final int
private Image.Accessor<?>
private final Buffer
private final PixelFormat
private final float
private final int
private Image.Serial
private final int

Constructor Summary

AccessConstructor and Description
private
Image(PixelFormat pixelFormat, int[] pixels, int width, int height)

private
Image(PixelFormat pixelFormat, byte[] pixels, int width, int height)

private
Image(PixelFormat pixelFormat, Buffer pixelBuffer, int width, int height)

private
Image(PixelFormat pixelFormat, Buffer pixelBuffer, int width, int height, int minX, int minY, int scanlineStride)

private
Image(PixelFormat pixelFormat, Buffer pixelBuffer, int width, int height, int minX, int minY, int scanlineStride, float pixelScale)

Method Summary

Modifier and TypeMethod and Description
public void
public static Image

Returns:

New Image instance.
convertImageFrame
(ImageFrame
ImageFrame to convert.
frame
)

This method wraps ImageFrame data to com.sum.prism.Image.

public static Buffer

Returns:

a new, tightly packed copy of the given Buffer
createPackedBuffer
(Buffer
the buffer containing the pixels to copy
pixels
,
PixelFormat
the format of the given buffer
format
,
int
the x offset of the upper-left corner of the pixel region
minX
,
int
the y offset of the upper-left corner of the pixel region
minY
,
int
the width of the pixel region to be copied, in pixels
width
,
int
the height of the pixel region to be copied, in pixels
height
,
int
the scanline stride of the given buffer, in bytes
scanlineStride
)

Returns a new Buffer instance that contains a tightly packed copy of the given Buffer's pixel data.

public Image

Returns:

a new Image this is a tightly packed copy of this image
createPackedCopy
()

Returns a new Image instance with a newly allocated pixel buffer that contains a tightly packed copy of this image's pixels.

public Image

Returns:

a new Image this is a tightly packed copy of this image or itself if this image is packed already.
createPackedCopyIfNeeded
()

Returns a Image instance with a newly allocated pixel buffer that contains a tightly packed copy of this image's pixels or if this image is already tightly packed, itself.

public Image

Returns:

a new Image representing a sub-region of this image
createSubImage
(int
the x offset of the upper-left corner of the new subimage, relative to the minX of this image
x
,
int
the y offset of the upper-left corner of the new subimage, relative to the minY of this image
y
,
int
the width of the new subimage
w
,
int
the height of the new subimage
h
)

Returns a new Image instance that shares the underlying pixel buffer of this Image.

public static Image
fromByteAlphaData(byte[] pixels, int width, int height)

public static Image
fromByteAlphaData(ByteBuffer pixels, int width, int height)

public static Image
fromByteAlphaData(ByteBuffer pixels, int width, int height, int scanlineStride)

public static Image
fromByteApple422Data(byte[] pixels, int width, int height)

public static Image
fromByteApple422Data(ByteBuffer pixels, int width, int height)

public static Image
fromByteApple422Data(ByteBuffer pixels, int width, int height, int scanlineStride)

public static Image
fromByteBgraPreData(byte[] pixels, int width, int height)

public static Image
fromByteBgraPreData(byte[] pixels, int width, int height, float pixelScale)

public static Image
fromByteBgraPreData(ByteBuffer pixels, int width, int height)

public static Image
fromByteBgraPreData(ByteBuffer pixels, int width, int height, int scanlineStride)

public static Image
fromByteBgraPreData(ByteBuffer pixels, int width, int height, int scanlineStride, float pixelScale)

public static Image
fromByteGrayData(byte[] pixels, int width, int height)

public static Image
fromByteGrayData(ByteBuffer pixels, int width, int height)

public static Image
fromByteGrayData(ByteBuffer pixels, int width, int height, int scanlineStride)

public static Image
fromByteGrayData(ByteBuffer pixels, int width, int height, int scanlineStride, float pixelScale)

public static Image
fromByteRgbData(byte[] pixels, int width, int height)

public static Image
fromByteRgbData(ByteBuffer pixels, int width, int height)

public static Image
fromByteRgbData(ByteBuffer pixels, int width, int height, int scanlineStride)

public static Image
fromByteRgbData(ByteBuffer pixels, int width, int height, int scanlineStride, float pixelScale)

public static Image
fromFloatMapData(FloatBuffer pixels, int width, int height)

public static Image
fromIntArgbPreData(int[] pixels, int width, int height)

public static Image
fromIntArgbPreData(IntBuffer pixels, int width, int height)

public static Image
fromIntArgbPreData(IntBuffer pixels, int width, int height, int scanlineStride)

public static Image
fromIntArgbPreData(IntBuffer pixels, int width, int height, int scanlineStride, float pixelScale)

public static Image
fromPixelBufferPreData(PixelFormat pf, Buffer pixels, int width, int height)

public int
getArgb(int
X coordinate of pixel
x
,
int
Y coordinate of pixel
y
)

Implements com.sun.javafx.tk.PlatformImage.getArgb.

public int
public PixelFormat.DataType
pack-priv static PixelFormat<ByteBuffer>
public int
public int
public int
private Image.Accessor<?>
public Buffer
public PixelFormat
public <T extends Buffer> void
getPixels(int x, int y, int w, int h, WritablePixelFormat<T> pixelformat, T pixels, int scanlineBytes)

Implements com.sun.javafx.tk.PlatformImage.getPixels.

public void
getPixels(int x, int y, int w, int h, WritablePixelFormat<ByteBuffer> pixelformat, byte[] pixels, int offset, int scanlineBytes)

Implements com.sun.javafx.tk.PlatformImage.getPixels.

public void
getPixels(int x, int y, int w, int h, WritablePixelFormat<IntBuffer> pixelformat, int[] pixels, int offset, int scanlineInts)

Implements com.sun.javafx.tk.PlatformImage.getPixels.

public float
getPixelScale()

Implements com.sun.javafx.tk.PlatformImage.getPixelScale.

Gets the scale representing how large an area a 72DPI virtual pixel covers in terms of the pixels of this image.

public PixelFormat<?>
public int
public int
public Image.Serial
pack-priv static <I extends Buffer> PixelSetter<I>
public int
public Image
iconify(ByteBuffer iconBuffer, int twidth, int theight)

public boolean
public boolean
public boolean
public Image
public PlatformImage
public void
setArgb(int
X coordinate of pixel
x
,
int
Y coordinate of pixel
y
,
int argb)

Implements com.sun.javafx.tk.PlatformImage.setArgb.

public <T extends Buffer> void
setPixels(int x, int y, int w, int h, PixelFormat<T> pixelformat, T pixels, int scanlineBytes)

Implements com.sun.javafx.tk.PlatformImage.setPixels.

public void
setPixels(int x, int y, int w, int h, PixelFormat<ByteBuffer> pixelformat, byte[] pixels, int offset, int scanlineBytes)

Implements com.sun.javafx.tk.PlatformImage.setPixels.

public void
setPixels(int x, int y, int w, int h, PixelFormat<IntBuffer> pixelformat, int[] pixels, int offset, int scanlineInts)

Implements com.sun.javafx.tk.PlatformImage.setPixels.

public void
setPixels(int dstx, int dsty, int w, int h, PixelReader reader, int srcx, int srcy)

Implements com.sun.javafx.tk.PlatformImage.setPixels.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

private void
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait