Struct imagequant::Attributes [] [src]

pub struct Attributes { /* fields omitted */ }

Settings for the conversion proces. Start here.

Methods

impl Attributes
[src]

[src]

[src]

It's better to use set_quality()

[src]

Number of least significant bits to ignore.

Useful for generating palettes for VGA, 15-bit textures, or other retro platforms.

[src]

[src]

Range 0-100, roughly like JPEG.

If minimum quality can't be met, quantization will fail.

Default is min 0, max 100.

[src]

Reads values set with set_quality

[src]

1-10.

Faster speeds generate images of lower quality, but may be useful for real-time generation of images.

[src]

[src]

[src]

[src]

Describe dimensions of a slice of RGBA pixels

Use 0.0 for gamma if the image is sRGB (most images are).

[src]

Stride is in pixels. Allows defining regions of larger images or images with padding without copying.

[src]

[src]

Generate palette for the image

Trait Implementations

impl Drop for Attributes
[src]

[src]

Executes the destructor for this type. Read more

impl Clone for Attributes
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Send for Attributes
[src]