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]ⓘ; 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
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]ⓘ
[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]
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]
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]
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
pub fn gl_internal_format_type(&self) -> Option<(u32, u32, u32)>
[src]
pub fn num_components(&self) -> usize
[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 data(&self) -> &[<Pixel as Pixel>::Subpixel]ⓘ
[src]
pub fn levels(&self) -> usize
[src]
pub fn mipmap(&self, level: usize) -> Option<&[<Pixel as Pixel>::Subpixel]>
[src]
pub fn is_gpu_compressed(&self) -> bool
[src]
impl Image for DynamicImage
[src]
impl Image for DynamicImage
[src]type DataType = u8
pub fn gl_internal_format_type(&self) -> Option<(u32, u32, u32)>
[src]
pub fn num_components(&self) -> usize
[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 data(&self) -> &[u8]ⓘ
[src]
pub fn levels(&self) -> usize
[src]
pub fn mipmap(&self, level: usize) -> Option<&[u8]>
[src]
pub fn is_gpu_compressed(&self) -> bool
[src]
Implementors
impl Image for Bitmap
[src]
impl Image for Bitmap
[src]type DataType = u8
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) -> &[u8]ⓘ
[src]
pub fn levels(&self) -> usize
[src]
pub fn mipmap(&self, level: usize) -> Option<&[u8]>
[src]
pub fn is_gpu_compressed(&self) -> bool
[src]
impl<S> Image for Dds<S> where
S: Borrow<[u8]>,
[src]
impl<S> Image for Dds<S> where
S: Borrow<[u8]>,
[src]