Struct openexr::core::preview_image::PreviewImage[][src]

#[repr(transparent)]
pub struct PreviewImage(_);
Expand description

A usually small, low-dynamic range image, that is intended to be stored in an image file’s header

Implementations

Creates a new PreviewImage with dimensions width = 0 and height = 0

Errors

Creates a new PreviewImage with the provided dimensions

Errors

Creates a new PreviewImage with the provided dimensions and pixels

Errors

Returns the width of the PreviewImage

Returns the height of the PreviewImage

Get the image pixels as a slice

Get the image pixels as a mutable slice

Sets the pixel value at the specified coordinates

Errors

Gets the pixel value at the specified coordinates

Returns None if the coordinates are outside of the image size, or some other error ocurred

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.