Struct adi_gpu_base::Graphic
[−]
[src]
pub struct Graphic { /* fields omitted */ }
A graphic (image)
Methods
impl Graphic
[src]
pub fn bgra(&mut self)
[src]
Convert self
into a BGRA graphic.
pub fn rgba(&mut self)
[src]
Convert self
into a RGBA graphic.
pub fn as_slice(&self) -> (u32, u32, &[u32])
[src]
Get the graphic as a slice (w, h, [pixels])
pub fn as_bytes(&self) -> (u32, u32, &[u8])
[src]
Get the graphic as a slice (w, h, [r, g, b, a])