[][src]Struct paddle::graphics::Image

pub struct Image { /* fields omitted */ }

An image that can be drawn to the screen

Implementations

impl Image[src]

pub async fn load(src: &str) -> PaddleResult<Self>[src]

pub fn natural_width(&self) -> f32[src]

pub fn natural_height(&self) -> f32[src]

pub fn natural_size(&self) -> Vector[src]

pub fn subimage_texels(&self, rect: Rectangle) -> Image[src]

Create a view into an existing image, using texel coordinates (number of pixels in source texture)

pub fn subimage(&self, rect: Rectangle) -> Image[src]

Create a view into an existing image, using texture coordinates (from 0.0 to 1.0 in both dimensions)

Trait Implementations

impl Clone for Image[src]

impl Debug for Image[src]

impl Eq for Image[src]

impl<'a> From<&'a Image> for Background<'a>[src]

impl PartialEq<Image> for Image[src]

impl StructuralEq for Image[src]

impl StructuralPartialEq for Image[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Activity for T where
    T: Any
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,