pub struct Header {Show 15 fields
pub file_size: Dword,
pub frames: Word,
pub width: Word,
pub height: Word,
pub color_depth: ColorDepth,
pub flags: Dword,
pub speed: Word,
pub transparent_index: Byte,
pub color_count: Word,
pub pixel_width: Byte,
pub pixel_height: Byte,
pub grid_x: Short,
pub grid_y: Short,
pub grid_width: Word,
pub grid_height: Word,
}Expand description
A 128-byte header (same as FLC/FLI header, but with other magic number)
Fields§
§file_size: DwordFile size
frames: WordAmount of frames in the body of the file
width: WordWidth in pixels
height: WordHeight in pixels
color_depth: ColorDepthColor depth (bits per pixel)
flags: DwordFlags: 1 = Layer opacity has valid value
speed: WordSpeed (milliseconds between frame, like in FLC files) DEPRECATED: You should use the frame duration field from each frame header
transparent_index: BytePalette entry (index) which represent transparent color in all non-background layers (only for Indexed sprites).
color_count: WordThe amount of colors in the palette
pixel_width: BytePixel width (pixel ratio is “pixel width/pixel height”). If this or pixel height field is zero, pixel ratio is 1:1
pixel_height: BytePixel height
grid_x: ShortX position of the grid
grid_y: ShortY position of the grid
grid_width: WordGrid width (zero if there is no grid, grid size is 16x16 on Aseprite by default)
grid_height: WordGrid height (zero if there is no grid)
Trait Implementations§
impl Copy for Header
impl Eq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more