pub struct RawAsepriteHeader {Show 16 fields
pub file_size: u32,
pub magic_number: u16,
pub frames: u16,
pub width: u16,
pub height: u16,
pub color_depth: AsepriteColorDepth,
pub flags: u32,
pub speed: u16,
pub transparent_palette: u8,
pub color_count: u16,
pub pixel_width: u8,
pub pixel_height: u8,
pub grid_x: i16,
pub grid_y: i16,
pub grid_width: u16,
pub grid_height: u16,
}
Expand description
The raw Aseprite Header
Fields§
§file_size: u32
File size of the .aseprite file
magic_number: u16
Magic number in the file, always 0xA5E0
frames: u16
Amount of frames in the body of the file
width: u16
Base width
height: u16
Base height
color_depth: AsepriteColorDepth
The color depth used
flags: u32
Flags for this file
- 1 = Layer opacity has a valid value
speed: u16
👎Deprecated: You should use the duration in each frame
Milliseconds between frames (DEPRECATED)
transparent_palette: u8
Palette entry which should be considered transparent
This is only useful for indexed colors
color_count: u16
The amount of colors in the palette
pixel_width: u8
Width of one pixel
pixel_height: u8
Height of one pixel
grid_x: i16
Grid x start position
grid_y: i16
Grid y start position
grid_width: u16
Grid width
grid_height: u16
Grid height
Trait Implementations§
Source§impl Debug for RawAsepriteHeader
impl Debug for RawAsepriteHeader
Source§impl PartialEq for RawAsepriteHeader
impl PartialEq for RawAsepriteHeader
impl StructuralPartialEq for RawAsepriteHeader
Auto Trait Implementations§
impl Freeze for RawAsepriteHeader
impl RefUnwindSafe for RawAsepriteHeader
impl Send for RawAsepriteHeader
impl Sync for RawAsepriteHeader
impl Unpin for RawAsepriteHeader
impl UnwindSafe for RawAsepriteHeader
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
Mutably borrows from an owned value. Read more