Package icyllis.arc3d.core.j2d
Class Raster
java.lang.Object
icyllis.arc3d.core.j2d.Raster
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Grayscale, one channel, 16-bit per channel.static final int
Grayscale, one channel, 8-bit per channel.static final int
RGB, three channels; red is 5 bits, green is 6 bits, blue is 5 bits.static final int
RGB, three channels, 8-bit per channel.static final int
protected final BufferedImage
protected Pixels
protected Pixmap
-
Constructor Summary
ConstructorDescriptionRaster
(BufferedImage bufImg, ImageInfo info, Object data, int baseOffset, int rowBytes) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static Raster
createRaster
(int width, int height, int format) int
int
int
int
getInfo()
Peek the current pixmap.int
getWidth()
-
Field Details
-
FORMAT_UNKNOWN
public static final int FORMAT_UNKNOWN- See Also:
-
FORMAT_GRAY_8
public static final int FORMAT_GRAY_8Grayscale, one channel, 8-bit per channel.- See Also:
-
FORMAT_GRAY_16
public static final int FORMAT_GRAY_16Grayscale, one channel, 16-bit per channel.Represented as a short on Java heap (native order).
- See Also:
-
FORMAT_RGB_565
public static final int FORMAT_RGB_565RGB, three channels; red is 5 bits, green is 6 bits, blue is 5 bits.Represented as a short on Java heap (native order).
To GPU: RGB_565 (R5G6B5), R is in most-significant bits.
- See Also:
-
FORMAT_RGB_888
public static final int FORMAT_RGB_888RGB, three channels, 8-bit per channel.Represented as three bytes on Java heap.
To GPU: BGR_888 (B8G8R8), B is in the lowest address.
- See Also:
-
mBufImg
-
mPixmap
-
mPixels
-
-
Constructor Details
-
Raster
public Raster(@Nullable BufferedImage bufImg, @Nonnull ImageInfo info, @Nullable Object data, int baseOffset, int rowBytes)
-
-
Method Details
-
createRaster
-
getFormat
public int getFormat() -
getInfo
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getColorType
public int getColorType() -
getAlphaType
public int getAlphaType() -
getColorSpace
-
getPixmap
Peek the current pixmap. -
getPixels
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-