pxl library
Fixed-size buffer of Pixels, with customizable PixelFormats, BlendModes, and more.
- Create and manipulate in-memory IntPixels or Float32x4Pixels buffers
- Define and convert between PixelFormats.
- Palette-based indexed pixel formats with IndexedFormat.
- Buffer-to-buffer blitting with automatic format conversion and BlendModes.
- Region-based pixel manipulation, replacement, and copying.
Classes
- Abgr8888 Pixel Formats
- 32-bit ABGR pixel format with four 8-bit channels.
- Argb8888 Pixel Formats
- 32-bit ARGB pixel format with four 8-bit channels.
- BlendMode Blending
- Algorithms to use when painting on the canvas.
-
Buffer<
T extends Object?> Buffers -
A 2-dimensional view of pixel data
T
in memory. -
ComparisonResult<
T> Output and Comparison - The result of a pixel comparison test.
- Float32x4Pixels Buffers
- A 2-dimensional buffer of multi-channel floating point pixel data in memory.
- FloatRgba Pixel Formats
- A 128-bit floating-point RGBA pixel format with four 32-bit channels.
- Gray8 Pixel Formats
- 8-bit grayscale pixel format.
-
IndexedFormat<
P> Pixel Formats - A pixel format that uses a predefined palette to index colors.
- IntPixels Buffers
- A 2-dimensional buffer of integer-based pixel data in memory.
- NetpbmAsciiCodec Output and Comparison
- A codec that encodes and decodes pixel data as a portable pixmap (Netpbm) image format.
- NetpbmAsciiDecoder Output and Comparison
- Decodes a portable pixmap (Netpbm) image format using ASCII to pixel data.
- NetpbmAsciiEncoder Output and Comparison
- Encodes pixel data in a portable pixmap (Netpbm) image format using ASCII.
- NetpbmBinaryCodec Output and Comparison
- A codec that encodes and decodes pixel data as a portable pixmap (Netpbm) image format.
- NetpbmBinaryDecoder Output and Comparison
- Decodes a portable pixmap (Netpbm) image format using binary to pixel data.
- NetpbmBinaryEncoder Output and Comparison
- Encodes pixel data in a portable pixmap (Netpbm) image format using binary.
-
NetpbmDecoder<
T> Output and Comparison - Decodes a portable pixmap (Netpbm) image format to pixel data.
-
NetpbmEncoder<
T> Output and Comparison - Encodes pixel data as a portable pixmap (Netpbm) image format.
- NetpbmHeader Output and Comparison
- Parsed header information from a Netpbm image.
- PackedBitmapCodec
- Codec for encoding and decoding packed bitmaps.
- PackedBitmapDecoder
- Decodes a bitmap from a compact (packed) binary format.
- PackedBitmapEncoder
- Encodes a bitmap to a compact (packed) binary format.
-
PixelFormat<
P, C> Pixel Formats -
Describes the organization and characteristics of pixel data
P
in memory. -
Pixels<
T> Buffers Blending - A 2-dimensional buffer of pixel data in memory.
- PorterDuff Blending
- A BlendMode that uses Porter-Duff coefficients to blend colors.
-
Rgb<
P, C> Pixel Formats - Base API for pixel formats that have red, green, and blue channels.
- Rgb888 Pixel Formats
-
24-bit
^1
RGB pixel format with three 8-bit channels. -
Rgba<
P, C> Pixel Formats - Base API for pixel formats that have red, green, blue, and alpha channels.
- UncompressedPngEncoder Output and Comparison
- Encodes a buffer of pixel data as an uncompressed RGBA PNG image with 8-bit color depth.
Enums
- NetpbmFormat Output and Comparison
- Formats supported by the Netpbm image format.
Mixins
-
Grayscale<
P, C> Pixel Formats - A mixin for pixel formats that represent graysacle pixels.
Constants
- abgr8888 → const Abgr8888 Pixel Formats
- 32-bit ABGR pixel format with four 8-bit channels.
- argb8888 → const Argb8888 Pixel Formats
- 32-bit ARGB pixel format with four 8-bit channels.
- floatRgba → const FloatRgba Pixel Formats
- A 128-bit floating-point RGBA pixel format with four 32-bit channels.
- gray8 → const Gray8 Pixel Formats
- 8-bit grayscale pixel format.
- netpbmAsciiCodec → const NetpbmAsciiCodec Output and Comparison
- A codec that encodes and decodes pixel data as a portable pixmap (Netpbm) image format.
- netpbmAsciiDecoder → const NetpbmAsciiDecoder Output and Comparison
- Decodes a portable pixmap (Netpbm) image format using ASCII to pixel data.
- netpbmAsciiEncoder → const NetpbmAsciiEncoder Output and Comparison
- Encodes pixel data as a portable pixmap (Netpbm) image format using ASCII.
- netpbmBinaryCodec → const NetpbmBinaryCodec Output and Comparison
- A codec that encodes and decodes pixel data as a portable pixmap (Netpbm) image format.
- netpbmBinaryDecoder → const NetpbmBinaryDecoder Output and Comparison
- Decodes a portable pixmap (Netpbm) image format using binary to pixel data.
- netpbmBinaryEncoder → const NetpbmBinaryEncoder Output and Comparison
- Encodes pixel data as a portable pixmap (Netpbm) image format.
- packedBitmapCodec → const PackedBitmapCodec
- Codec for encoding and decoding packed bitmaps.
- packedBitmapDecoder → const PackedBitmapDecoder
- Decodes a bitmap from a compact (packed) binary format.
- packedBitmapEncoder → const PackedBitmapEncoder
- Encodes a bitmap to a compact (packed) binary format.
- rgb888 → const Rgb888 Pixel Formats
-
24-bit
^1
RGB pixel format with three 8-bit channels. - uncompressedPngEncoder → const UncompressedPngEncoder Output and Comparison
- Encodes a buffer of integer pixel data as an uncompressed RGBA PNG image.
Properties
-
system256
→ IndexedFormat<
int> Pixel Formats -
A simple 256-color system palette of common RGB colors.
final
-
system8
→ IndexedFormat<
int> Pixel Formats -
A simple 8-color system palette of common RGB colors.
final