Top Description Fields Constructors Methods
com.sun.javafx.iio

public Class ImageFrame

extends Object
Class Inheritance
Imports
com.sun.javafx.iio.ImageStorage.ImageType, java.nio.Buffer, .ByteBuffer

A class representing the data and metadata of a single image.

Field Summary

Modifier and TypeField and Description
private int
private ByteBuffer
private ImageStorage.ImageType
private ImageMetadata
private byte[][]
private float
private int
private int

Constructor Summary

AccessConstructor and Description
public
ImageFrame(ImageStorage.ImageType
The type of image data. The value of this field also implies the number of bands.
imageType
,
ByteBuffer
The image data.
imageData
,
int
The image width.
width
,
int
The image height.
height
,
int
The stride from a pixel position in one row to the same horizontal position in the next row.
stride
,
byte[][]
The image palette. This is ignored unless the type is one of the palette types.
palette
,
ImageMetadata
The image metadata.
metadata
)

Create an ImageFrame with a default 72DPI pixel scale.

public
ImageFrame(ImageStorage.ImageType
The type of image data. The value of this field also implies the number of bands.
imageType
,
ByteBuffer
The image data.
imageData
,
int
The image width.
width
,
int
The image height.
height
,
int
The stride from a pixel position in one row to the same horizontal position in the next row.
stride
,
byte[][]
The image palette. This is ignored unless the type is one of the palette types.
palette
,
float
The scale of a 72DPI virtual pixel in the resolution of the image (1.0f for 72DPI images, 2.0f for 144DPI images, etc.).
pixelScale
,
ImageMetadata
The image metadata.
metadata
)

Create an ImageFrame.

Method Summary

Modifier and TypeMethod and Description
public int
public Buffer
public ImageStorage.ImageType
public ImageMetadata
public byte[][]
public float
public int
public int
public void
setPixelScale(float pixelScale)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

heightback to summary
private int height
imageDataback to summary
private ByteBuffer imageData
imageTypeback to summary
private ImageStorage.ImageType imageType
metadataback to summary
private ImageMetadata metadata
paletteback to summary
private byte[][] palette
pixelScaleback to summary
private float pixelScale
strideback to summary
private int stride
widthback to summary
private int width

Constructor Detail

ImageFrameback to summary
public ImageFrame(ImageStorage.ImageType imageType, ByteBuffer imageData, int width, int height, int stride, byte[][] palette, ImageMetadata metadata)

Create an ImageFrame with a default 72DPI pixel scale.

Parameters
imageType:ImageStorage.ImageType

The type of image data. The value of this field also implies the number of bands.

imageData:ByteBuffer

The image data.

width:int

The image width.

height:int

The image height.

stride:int

The stride from a pixel position in one row to the same horizontal position in the next row.

palette:byte[][]

The image palette. This is ignored unless the type is one of the palette types.

metadata:ImageMetadata

The image metadata.

ImageFrameback to summary
public ImageFrame(ImageStorage.ImageType imageType, ByteBuffer imageData, int width, int height, int stride, byte[][] palette, float pixelScale, ImageMetadata metadata)

Create an ImageFrame.

Parameters
imageType:ImageStorage.ImageType

The type of image data. The value of this field also implies the number of bands.

imageData:ByteBuffer

The image data.

width:int

The image width.

height:int

The image height.

stride:int

The stride from a pixel position in one row to the same horizontal position in the next row.

palette:byte[][]

The image palette. This is ignored unless the type is one of the palette types.

pixelScale:float

The scale of a 72DPI virtual pixel in the resolution of the image (1.0f for 72DPI images, 2.0f for 144DPI images, etc.).

metadata:ImageMetadata

The image metadata.

Method Detail

getHeightback to summary
public int getHeight()
getImageDataback to summary
public Buffer getImageData()
getImageTypeback to summary
public ImageStorage.ImageType getImageType()
getMetadataback to summary
public ImageMetadata getMetadata()
getPaletteback to summary
public byte[][] getPalette()
getPixelScaleback to summary
public float getPixelScale()
getStrideback to summary
public int getStride()
getWidthback to summary
public int getWidth()
setPixelScaleback to summary
public void setPixelScale(float pixelScale)