Struct repng::Options [] [src]

pub struct Options {
    pub level: Compression,
    pub width: u32,
    pub height: u32,
    pub depth: u8,
    pub format: ColorFormat,
    pub buffer: usize,

Image properties and compression options.


The compression level.

The width of the image, in pixels.

The height of the image, in pixels.

The number of bits in each channel.

The format of the image.

The size of the compressed data buffer.

This value determines the maximum size of an IDAT chunk.


impl Options


Specifies an 8-bit RGBA image optimizing for image size.


Specifies an 8-bit RGBA image optimizing for encoding speed.


Make a new encoder with these options and the default filter.

To customize the filter as well, see Encoder::new.


The number of bytes occupied by a single row of the uncompressed image.

Trait Implementations

impl<'a> From<&'a Options> for None


Performs the conversion.

impl<'a> From<&'a Options> for Standard


Performs the conversion.

impl Debug for Options


Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Options

impl Sync for Options