Struct afi::GraphicBuilder
[−]
[src]
pub struct GraphicBuilder;
Builder for Graphic
Methods
impl GraphicBuilder
[src]
pub fn new() -> GraphicBuilder
[src]
Create a new GraphicBuilder
pub fn rgba(self, w: u32, h: u32, data: Vec<u32>) -> Graphic
[src]
Create an RGBA graphic.
pub fn bgra(self, w: u32, h: u32, data: Vec<u32>) -> Graphic
[src]
Create a BGRA graphic.