Struct nanovg::Image
[−]
[src]
pub struct Image<'a>(_, _);
Handle to an image.
Methods
impl<'a> Image<'a>
[src]
pub fn new(context: &'a Context) -> ImageBuilder
[src]
pub fn context(&self) -> &'a Context
[src]
Get the underlying context this image was created on.
pub fn size(&self) -> (usize, usize)
[src]
pub fn update(&mut self, data: &[u32])
[src]
Trait Implementations
impl<'a> Debug for Image<'a>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more