dart_image library

The image library aims to provide server-side programs the ability to load, manipulate, and save various image file formats.

Classes

Decoder
Encoder
Image
A 32-bit image buffer where pixels are encoded into 32-bit unsigned ints. You can use the methods in color to encode/decode the RGBA channels of a color for a pixel.
JpegDecoder
Decode a jpeg encoded image. [...]
JpegEncoder
Encode an image to the JPEG format. [...]
PngDecoder
Decode a PNG encoded image.
PngEncoder
Encode an image to the PNG format.
TgaEncoder
Encode a TGA image. Used for debugging since TGA format isn't used much these days.

Functions

getAlpha(int c) → int
getBlue(int c) → int
getColor(int r, int g, int b, [ int a = 255 ]) → int
getColorFromList(List<int> rgba) → int
getGreen(int c) → int
getRed(int c) → int