Package | Description |
---|---|
com.sun.javafx.image | |
com.sun.javafx.image.impl | |
com.sun.javafx.tk | |
com.sun.javafx.webkit.prism | |
com.sun.prism | |
javafx.embed.swing |
Provides the set of classes to use JavaFX inside Swing applications.
|
javafx.scene.image |
Provides the set of classes for loading and displaying images.
|
Modifier and Type | Method and Description |
---|---|
static BytePixelGetter |
PixelUtils.getByteGetter(PixelFormat<java.nio.ByteBuffer> pf) |
static <T extends java.nio.Buffer> |
PixelUtils.getGetter(PixelFormat<T> pf) |
static IntPixelGetter |
PixelUtils.getIntGetter(PixelFormat<java.nio.IntBuffer> pf) |
Modifier and Type | Field and Description |
---|---|
(package private) PixelFormat<java.nio.ByteBuffer> |
ByteIndexed.Getter.theFormat |
Modifier and Type | Method and Description |
---|---|
static BytePixelGetter |
ByteIndexed.createGetter(PixelFormat<java.nio.ByteBuffer> pf) |
Constructor and Description |
---|
Getter(PixelFormat<java.nio.ByteBuffer> pf) |
Modifier and Type | Method and Description |
---|---|
PixelFormat |
PlatformImage.getPlatformPixelFormat() |
Modifier and Type | Method and Description |
---|---|
int[] |
Toolkit.ImageAccessor.getNonPreColors(PixelFormat<java.nio.ByteBuffer> pf) |
int[] |
Toolkit.ImageAccessor.getPreColors(PixelFormat<java.nio.ByteBuffer> pf) |
void |
PlatformImage.setPixels(int x,
int y,
int w,
int h,
PixelFormat<java.nio.ByteBuffer> pixelformat,
byte[] pixels,
int offset,
int scanlineBytes) |
void |
PlatformImage.setPixels(int x,
int y,
int w,
int h,
PixelFormat<java.nio.IntBuffer> pixelformat,
int[] pixels,
int offset,
int scanlineInts) |
<T extends java.nio.Buffer> |
PlatformImage.setPixels(int x,
int y,
int w,
int h,
PixelFormat<T> pixelformat,
T pixels,
int scanlineBytes) |
Modifier and Type | Method and Description |
---|---|
private static int |
PrismImage.getBestBufferedImageType(PixelFormat<?> fxFormat) |
Modifier and Type | Field and Description |
---|---|
(package private) static PixelFormat<java.nio.ByteBuffer> |
Image.FX_ByteGray_FORMAT |
(package private) static PixelFormat<java.nio.ByteBuffer> |
Image.FX_ByteRgb_FORMAT |
(package private) PixelFormat<I> |
Image.BaseAccessor.theFormat |
Modifier and Type | Method and Description |
---|---|
(package private) static PixelFormat<java.nio.ByteBuffer> |
Image.getGrayFXPixelFormat() |
PixelFormat<?> |
Image.getPlatformPixelFormat() |
abstract PixelFormat<I> |
Image.Accessor.getPlatformPixelFormat() |
PixelFormat<I> |
Image.ScaledAccessor.getPlatformPixelFormat() |
PixelFormat<I> |
Image.BaseAccessor.getPlatformPixelFormat() |
Modifier and Type | Method and Description |
---|---|
(package private) static <I extends java.nio.Buffer> |
Image.getSetterIfWritable(PixelFormat<I> theFormat) |
void |
Image.setPixels(int x,
int y,
int w,
int h,
PixelFormat<java.nio.ByteBuffer> pixelformat,
byte[] pixels,
int offset,
int scanlineBytes) |
abstract void |
Image.Accessor.setPixels(int x,
int y,
int w,
int h,
PixelFormat<java.nio.ByteBuffer> pixelformat,
byte[] pixels,
int offset,
int scanlineBytes) |
void |
Image.ScaledAccessor.setPixels(int x,
int y,
int w,
int h,
PixelFormat<java.nio.ByteBuffer> pixelformat,
byte[] pixels,
int offset,
int scanlineBytes) |
void |
Image.ByteAccess.setPixels(int x,
int y,
int w,
int h,
PixelFormat<java.nio.ByteBuffer> pixelformat,
byte[] srcarr,
int srcoff,
int srcScanlineBytes) |
void |
Image.IntAccess.setPixels(int x,
int y,
int w,
int h,
PixelFormat<java.nio.ByteBuffer> pixelformat,
byte[] srcarr,
int srcoff,
int srcScanlineBytes) |
void |
Image.setPixels(int x,
int y,
int w,
int h,
PixelFormat<java.nio.IntBuffer> pixelformat,
int[] pixels,
int offset,
int scanlineInts) |
abstract void |
Image.Accessor.setPixels(int x,
int y,
int w,
int h,
PixelFormat<java.nio.IntBuffer> pixelformat,
int[] pixels,
int offset,
int scanlineInts) |
void |
Image.ScaledAccessor.setPixels(int x,
int y,
int w,
int h,
PixelFormat<java.nio.IntBuffer> pixelformat,
int[] pixels,
int offset,
int scanlineInts) |
void |
Image.ByteAccess.setPixels(int x,
int y,
int w,
int h,
PixelFormat<java.nio.IntBuffer> pixelformat,
int[] srcarr,
int srcoff,
int srcScanlineInts) |
void |
Image.IntAccess.setPixels(int x,
int y,
int w,
int h,
PixelFormat<java.nio.IntBuffer> pixelformat,
int[] srcarr,
int srcoff,
int srcScanlineInts) |
<T extends java.nio.Buffer> |
Image.setPixels(int x,
int y,
int w,
int h,
PixelFormat<T> pixelformat,
T pixels,
int scanlineBytes) |
abstract <T extends java.nio.Buffer> |
Image.Accessor.setPixels(int x,
int y,
int w,
int h,
PixelFormat<T> pixelformat,
T pixels,
int scanlineBytes) |
<T extends java.nio.Buffer> |
Image.ScaledAccessor.setPixels(int x,
int y,
int w,
int h,
PixelFormat<T> pixelformat,
T pixels,
int scanlineElems) |
<T extends java.nio.Buffer> |
Image.BaseAccessor.setPixels(int x,
int y,
int w,
int h,
PixelFormat<T> pixelformat,
T srcbuf,
int srcScanlineBytes) |
Constructor and Description |
---|
BaseAccessor(PixelFormat<I> theFormat,
I buffer,
int pixelStride) |
BaseAccessor(PixelFormat<I> theFormat,
PixelGetter<I> getter,
PixelSetter<I> setter,
I buffer,
int pixelStride) |
ByteAccess(PixelFormat<java.nio.ByteBuffer> fmt,
java.nio.ByteBuffer buffer,
int numbytes) |
ByteAccess(PixelFormat<java.nio.ByteBuffer> fmt,
PixelGetter<java.nio.ByteBuffer> getter,
PixelSetter<java.nio.ByteBuffer> setter,
java.nio.ByteBuffer buffer,
int numbytes) |
IntAccess(PixelFormat<java.nio.IntBuffer> fmt,
java.nio.IntBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
private static int |
SwingFXUtils.getBestBufferedImageType(PixelFormat<?> fxFormat,
java.awt.image.BufferedImage bimg)
Determine the optimal BufferedImage type to use for the specified
fxFormat allowing for the specified bimg to be used
as a potential default storage space if it is not null and is compatible. |
Modifier and Type | Class and Description |
---|---|
(package private) static class |
PixelFormat.ByteRgb |
(package private) static class |
PixelFormat.IndexedPixelFormat |
class |
WritablePixelFormat<T extends java.nio.Buffer>
A
PixelFormat object representing a pixel format that can store
full colors and so can be used as a destination format to write pixel
data from an arbitrary image. |
(package private) static class |
WritablePixelFormat.ByteBgra |
(package private) static class |
WritablePixelFormat.ByteBgraPre |
(package private) static class |
WritablePixelFormat.IntArgb |
(package private) static class |
WritablePixelFormat.IntArgbPre |
Modifier and Type | Method and Description |
---|---|
(package private) static PixelFormat |
PixelFormat.IndexedPixelFormat.createByte(int[] colors,
boolean premult) |
static PixelFormat<java.nio.ByteBuffer> |
PixelFormat.createByteIndexedInstance(int[] colors)
Creates a
PixelFormat instance describing a pixel layout
with the pixels stored as single bytes representing an index
into the specified lookup table of non-premultiplied color
values in the INT_ARGB format. |
static PixelFormat<java.nio.ByteBuffer> |
PixelFormat.createByteIndexedPremultipliedInstance(int[] colors)
Creates a
PixelFormat instance describing a pixel layout
with the pixels stored as single bytes representing an index
into the specified lookup table of premultiplied color
values in the INT_ARGB_PRE format. |
static PixelFormat<java.nio.ByteBuffer> |
PixelFormat.getByteRgbInstance()
Returns a
PixelFormat instance describing a pixel
layout with the pixels stored in adjacent bytes with the
color components stored in order of increasing index:
red, green, blue. |
PixelFormat |
PixelWriter.getPixelFormat()
This method returns the
PixelFormat in which the surface
stores its pixels, or a roughly equivalent pixel format from which
it can easily convert pixels for purposes of writing them. |
PixelFormat |
PixelReader.getPixelFormat()
This method returns the
PixelFormat in which the surface
stores its pixels, or a roughly equivalent pixel format into which
it can easily convert its pixels for purposes of reading them. |
Modifier and Type | Method and Description |
---|---|
void |
PixelWriter.setPixels(int x,
int y,
int w,
int h,
PixelFormat<java.nio.ByteBuffer> pixelformat,
byte[] buffer,
int offset,
int scanlineStride)
Stores pixel data from a byte array into a rectangular region of the
surface.
|
void |
PixelWriter.setPixels(int x,
int y,
int w,
int h,
PixelFormat<java.nio.IntBuffer> pixelformat,
int[] buffer,
int offset,
int scanlineStride)
Stores pixel data from an int array into a rectangular region of the
surface.
|
<T extends java.nio.Buffer> |
PixelWriter.setPixels(int x,
int y,
int w,
int h,
PixelFormat<T> pixelformat,
T buffer,
int scanlineStride)
Stores pixel data from a buffer into a rectangular region of the
surface.
|