Struct BlockIndex
pub struct BlockIndex { pub layer: usize, pub pixel_position: Vec2<usize>, pub pixel_size: Vec2<usize>, pub level: Vec2<usize> }
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: usizeIndex 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
impl Clone for BlockIndex
fn clone(&self) -> Self
impl Copy for BlockIndex
impl Debug for BlockIndex
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for BlockIndex
impl Hash for BlockIndex
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for BlockIndex
fn eq(&self, other: &Self) -> bool