Struct asefile::Cel[][src]

pub struct Cel<'a> { /* fields omitted */ }
Expand description

A reference to a single Cel. A cel contains the image data at a specific layer and frame. In the timeline view these are the dots.

You can get a cel by going either via frame then layer or vice versa.

Official docs for cels.

Implementations

This cel as an image. Result has the same dimensions as the AsepriteFile. If the cel is empty, all image pixels will be transparent.

Returns true if the cel contains no data.

The frame coordinate of this cel.

The layer coordinate of this cel.

Returns the cel’s user data, if any is present.

Top-left corner of the non-empty rectangular area of the cel.

In other words, the first component is the smallest x coordinate of a non-empty pixel. And the second is the same for y.

These may be negative or outside of the visible area. This can happen if you drag a layer around.

Does this cel include a tilemap.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.