public class PixelDatas
extends java.lang.Object
PixelData objects from raw image data.| Modifier and Type | Method and Description |
|---|---|
static PixelData |
create(java.nio.ByteBuffer imageData)
Create a
PixelData from the given image data. |
static PixelData |
createErrorPixelData()
Create an unspecified
PixelData object that may be used as
a placeholder for image data that could not be read |
public static PixelData create(java.nio.ByteBuffer imageData)
PixelData from the given image data. The image data
may for example the the raw data of a JPG or PNG or GIF file. The
exact set of supported file formats is not specified. If the given
data can not be read, then a warning is printed and null
is returned.imageData - The image dataPixelDataCopyright © 2022. All Rights Reserved.