Struct retro_pixel::VecImage[][src]

pub struct VecImage<P> { /* fields omitted */ }

An image backed by a Vec.

Not available in no_std, obviously.

Methods

impl<P> VecImage<P>
[src]

Creates a VecImage of the given dimensions with the default value in all positions.

Creates a VecImage from the given vector of pixels.

Trait Implementations

impl<P: Debug> Debug for VecImage<P>
[src]

Formats the value using the given formatter. Read more

impl<P: Clone> Clone for VecImage<P>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<P: PartialEq> PartialEq for VecImage<P>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<P: Eq> Eq for VecImage<P>
[src]

impl<P: PartialOrd> PartialOrd for VecImage<P>
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<P: Ord> Ord for VecImage<P>
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<P: Hash> Hash for VecImage<P>
[src]

Feeds this value into the given [Hasher]. Read more

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

impl<P> Index<(usize, usize)> for VecImage<P>
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<P> ReadableImage<P> for VecImage<P>
[src]

Can't exceed isize::MAX

Can't exceed isize::MAX

Offset from the start of one row to the start of the next row.

Raw const pointer to the data.

Performs an optional indexing by reference, gives None for out of bounds.

Grabs out a sub-slice of the data. Read more

Important traits for ImageRefIter<'a, P>

Lets you iterate any image by reference.

This is like to_owned, you get your own version of the data. Read more

Scales up into a new VecImage by the given amount. Read more

impl<P> IndexMut<(usize, usize)> for VecImage<P>
[src]

Performs the mutable indexing (container[index]) operation.

impl<P> WritableImage<P> for VecImage<P>
[src]

Raw mut pointer to the data.

Performs an optional indexing by mut reference, gives None for out of bounds.

Grabs out a mutable sub-slice of the data. Read more

Important traits for ImageMutRefIter<'a, P>

Lets you mutably iterate over any writable form of image.

Assigns all locations to be the given pixel value.

Directly copies the data from the source image into this image. Read more

Flips the image vertically. Read more

Flips the image horizontally. Read more

Performs a 90 degrees counter-clockwise rotation, in place. Read more

Modifies this image by overlaying the source image at the offset given. Read more

impl WritableImageU16Ext for VecImage<u16>
[src]

This copies the data from the source into the destination any time the source's alpha bit is set. Read more

impl WritableImageU32Ext for VecImage<u32>
[src]

Performs a rectilinear blending blit at an integral pixel offset. Read more

Auto Trait Implementations

impl<P> Send for VecImage<P> where
    P: Send

impl<P> Sync for VecImage<P> where
    P: Sync