Struct retro_pixel::NESImage[][src]

pub struct NESImage { /* fields omitted */ }

An image the size of an NES screen, backed by an array.

This is a fairly big thing to have on the stack (~61k), so go easy with it, or stick it in a global somewhere.

Trait Implementations

impl Clone for NESImage
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for NESImage
[src]

Formats the value using the given formatter. Read more

impl Default for NESImage
[src]

Returns the "default value" for a type. Read more

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

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl ReadableImage<u8> for NESImage
[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 IndexMut<(usize, usize)> for NESImage
[src]

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

impl WritableImage<u8> for NESImage
[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

Auto Trait Implementations

impl Send for NESImage

impl Sync for NESImage