Trait rin::gl::Image[][src]

pub trait Image {
    type DataType: 'static + Clone;
Show methods pub fn gl_internal_format_type(&self) -> Option<(u32, u32, u32)>;
pub fn width(&self, level: usize) -> usize;
pub fn height(&self, level: usize) -> usize;
pub fn pitch_bytes(&self, level: usize) -> usize;
pub fn bytes_per_pixel(&self) -> usize;
pub fn pitch_components(&self, level: usize) -> usize;
pub fn num_components(&self) -> usize;
pub fn data(&self) -> &[Self::DataType]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
;
pub fn levels(&self) -> usize;
pub fn mipmap(&self, level: usize) -> Option<&[Self::DataType]>;
pub fn is_gpu_compressed(&self) -> bool; pub fn gl_internal(&self) -> Option<u32> { ... }
pub fn gl_format(&self) -> Option<u32> { ... }
pub fn gl_type(&self) -> Option<u32> { ... }
pub fn max_levels(&self) -> usize { ... }
}

Associated Types

type DataType: 'static + Clone[src]

Loading content...

Required methods

pub fn gl_internal_format_type(&self) -> Option<(u32, u32, u32)>[src]

pub fn width(&self, level: usize) -> usize[src]

pub fn height(&self, level: usize) -> usize[src]

pub fn pitch_bytes(&self, level: usize) -> usize[src]

pub fn bytes_per_pixel(&self) -> usize[src]

pub fn pitch_components(&self, level: usize) -> usize[src]

pub fn num_components(&self) -> usize[src]

pub fn data(&self) -> &[Self::DataType]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
[src]

pub fn levels(&self) -> usize[src]

pub fn mipmap(&self, level: usize) -> Option<&[Self::DataType]>[src]

pub fn is_gpu_compressed(&self) -> bool[src]

Loading content...

Provided methods

pub fn gl_internal(&self) -> Option<u32>[src]

pub fn gl_format(&self) -> Option<u32>[src]

pub fn gl_type(&self) -> Option<u32>[src]

pub fn max_levels(&self) -> usize[src]

Loading content...

Implementations on Foreign Types

impl<Pixel, C> Image for ImageBuffer<Pixel, C> where
    C: Deref<Target = [<Pixel as Pixel>::Subpixel]>,
    Pixel: Pixel + 'static,
    <Pixel as Pixel>::Subpixel: 'static, 
[src]

type DataType = <Pixel as Pixel>::Subpixel

impl Image for DynamicImage[src]

type DataType = u8

Loading content...

Implementors

impl Image for Bitmap[src]

type DataType = u8

impl<S> Image for Dds<S> where
    S: Borrow<[u8]>, 
[src]

type DataType = u8

Loading content...