Struct exr::block::BlockIndex
source · pub struct BlockIndex {
pub layer: usize,
pub pixel_position: Vec2<usize>,
pub pixel_size: Vec2<usize>,
pub level: Vec2<usize>,
}
Expand description
Specifies where a block of pixel data should be placed in the actual image. This is a globally unique identifier which includes the layer, level index, and pixel location.
Fields§
§layer: usize
Index of the layer.
pixel_position: Vec2<usize>
Index of the top left pixel from the block within the data window.
pixel_size: Vec2<usize>
Number of pixels in this block, extending to the right and downwards. Stays the same across all resolution levels.
level: Vec2<usize>
Index of the mip or rip level in the image.
Trait Implementations§
source§impl Clone for BlockIndex
impl Clone for BlockIndex
source§fn clone(&self) -> BlockIndex
fn clone(&self) -> BlockIndex
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BlockIndex
impl Debug for BlockIndex
source§impl Hash for BlockIndex
impl Hash for BlockIndex
source§impl PartialEq<BlockIndex> for BlockIndex
impl PartialEq<BlockIndex> for BlockIndex
source§fn eq(&self, other: &BlockIndex) -> bool
fn eq(&self, other: &BlockIndex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.