pngleam
Types
pub type ColorType {
Greyscale
Color
Indexed
GreyscaleWithAlpha
ColorWithAlpha
}
Constructors
-
Greyscale
-
Color
-
Indexed
-
GreyscaleWithAlpha
-
ColorWithAlpha
pub type CompressionLevel =
gzlib.CompressionLevel
Constants
pub const compression_level: fn(Int) ->
Result(CompressionLevel, Nil)
pub const default_compression: CompressionLevel
pub const greyscale_8bit: ColorInfo
pub const max_compression: CompressionLevel
pub const min_compression: CompressionLevel
pub const no_compression: CompressionLevel
pub const rgba_16bit: ColorInfo
Functions
pub fn color_info(
color_type color_type: ColorType,
bit_depth bit_depth: Int,
) -> Result(ColorInfo, Nil)
pub fn from_packed(
row_data row_data: List(BitArray),
width width: Int,
height height: Int,
color_info color_info: ColorInfo,
compression_level compression_level: CompressionLevel,
) -> BitArray