Struct adi_gpu_base::Graphic [−][src]
pub struct Graphic { /* fields omitted */ }
A graphic (image)
Methods
impl Graphic
[src]
impl Graphic
pub fn bgra(&mut self)
[src]
pub fn bgra(&mut self)
Convert self
into a BGRA graphic.
pub fn rgba(&mut self)
[src]
pub fn rgba(&mut self)
Convert self
into a RGBA graphic.
pub fn as_slice(&self) -> (u32, u32, &[u32])
[src]
pub fn as_slice(&self) -> (u32, u32, &[u32])
Get the graphic as a slice (w, h, [pixels])
pub fn as_bytes(&self) -> (u32, u32, &[u8])
[src]
pub fn as_bytes(&self) -> (u32, u32, &[u8])
Get the graphic as a slice (w, h, [r, g, b, a])
Trait Implementations
impl Clone for Graphic
[src]
impl Clone for Graphic
fn clone(&self) -> Graphic
[src]
fn clone(&self) -> Graphic
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl AsRef<Graphic> for Graphic
[src]
impl AsRef<Graphic> for Graphic