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.

Fields

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.

Methods

impl Options
[src]

[src]

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

[src]

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

[src]

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

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

[src]

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

Trait Implementations

impl<'a> From<&'a Options> for None
[src]

[src]

Performs the conversion.

impl<'a> From<&'a Options> for Standard
[src]

[src]

Performs the conversion.

impl Debug for Options
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Options

impl Sync for Options