[]Struct png::Transformations

pub struct Transformations { /* fields omitted */ }

Output transformations

Only IDENTITY and TRANSFORM_EXPAND | TRANSFORM_STRIP_ALPHA can be used at the moment.

Methods

impl Transformations

No transformation

Strip 16-bit samples to 8 bits

Discard the alpha channel

Expand 1; 2 and 4-bit samples to bytes

Change order of packed pixels to LSB first

Expand paletted images to RGB; expand grayscale images of less than 8-bit depth to 8-bit depth; and expand tRNS chunks to alpha channels.

Invert monochrome images

Normalize pixels to the sBIT depth

Flip RGB to BGR; RGBA to BGRA

Flip RGBA to ARGB or GA to AG

Byte-swap 16-bit samples

Change alpha from opacity to transparency

Returns an empty set of flags.

Returns the set containing all flags.

Returns the raw value of the flags currently stored.

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

Returns true if no flags are currently stored.

Returns true if all flags are currently set.

Returns true if there are flags common to both self and other.

Returns true all of the flags in other are contained within self.

Inserts the specified flags in-place.

Removes the specified flags in-place.

Toggles the specified flags in-place.

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl<R: Read> Parameter<Decoder<R>> for Transformations
[src]

impl Ord for Transformations

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialEq<Transformations> for Transformations

impl Clone for Transformations

Performs copy-assignment from source. Read more

impl Copy for Transformations

impl Eq for Transformations

impl Extend<Transformations> for Transformations

impl PartialOrd<Transformations> for Transformations

impl Debug for Transformations

impl Sub<Transformations> for Transformations

The resulting type after applying the - operator.

Returns the set difference of the two sets of flags.

impl SubAssign<Transformations> for Transformations

Disables all flags enabled in the set.

impl Not for Transformations

The resulting type after applying the ! operator.

Returns the complement of this set of flags.

impl BitAnd<Transformations> for Transformations

The resulting type after applying the & operator.

Returns the intersection between the two sets of flags.

impl BitOr<Transformations> for Transformations

The resulting type after applying the | operator.

Returns the union of the two sets of flags.

impl BitXor<Transformations> for Transformations

The resulting type after applying the ^ operator.

Returns the left flags, but with all the right flags toggled.

impl BitAndAssign<Transformations> for Transformations

Disables all flags disabled in the set.

impl BitOrAssign<Transformations> for Transformations

Adds the set of flags.

impl BitXorAssign<Transformations> for Transformations

Toggles the set of flags.

impl Hash for Transformations

Feeds a slice of this type into the given [Hasher]. Read more

impl FromIterator<Transformations> for Transformations

impl Octal for Transformations

impl Binary for Transformations

impl LowerHex for Transformations

impl UpperHex for Transformations

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]