Type Definition ggez::graphics::Image [] [src]

type Image = ImageGeneric<Resources>;

In-GPU-memory image data available to be drawn on the screen, using the OpenGL backend.

Methods

impl Image
[src]

Load a new image from the file at the given path.

Creates a new Image from the given buffer of u8 RGBA values.

A little helper function that creates a new Image that is just a solid square of the given size and color. Mainly useful for debugging.

Return the width of the image.

Return the height of the image.

Get the filter mode for the image.

Set the filter mode for the image.

Returns the dimensions of the image.

Gets the Image's WrapMode along the X and Y axes.

Sets the Image's WrapMode along the X and Y axes.

Trait Implementations

impl Debug for Image
[src]

Formats the value using the given formatter.

impl Drawable for Image
[src]

Actually draws the object to the screen. Read more

Draws the drawable onto the rendering target. Read more