Struct orbimage::Image [] [src]

pub struct Image { /* fields omitted */ }

Methods

impl Image
[src]

Create a new image

Create a new image filled whole with color

Create a new image from a boxed slice of colors

Load an image from file path. Supports BMP and PNG

Create a new empty image

Get the width of the image in pixels

Get the height of the image in pixels

Get a piece of the image

Return a reference to a slice of colors making up the image

Return a boxed slice of colors making up the image

Draw the image on a window