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 a piece of the image

Return a boxed slice of colors making up the image

Draw the image on a window

Trait Implementations

impl Renderer for Image
[src]

Get the width of the image in pixels

Get the height of the image in pixels

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

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

Flip the buffer

Draw a pixel

Draw a piece of an arc. Negative radius will fill in the inside

Draw a circle. Negative radius will fill in the inside

Draw a line

Draw a character, using the loaded font

Set entire window to a color

Sets the whole window to black

Draw rectangle

Display an image

Draw a linear gradient in a rectangular region

Draw a rect with rounded corners