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]

[src]

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

[src]

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

[src]

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.

[src]

Return the width of the image.

[src]

Return the height of the image.

[src]

Get the filter mode for the image.

[src]

Set the filter mode for the image.

[src]

Returns the dimensions of the image.

[src]

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

[src]

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

Trait Implementations

impl Debug for Image
[src]

[src]

Formats the value using the given formatter.

impl Drawable for Image
[src]

[src]

Actually draws the object to the screen. Read more

[src]

Draws the drawable onto the rendering target. Read more