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: u32File size of the .aseprite file
magic_number: u16Magic number in the file, always 0xA5E0
frames: u16Amount of frames in the body of the file
width: u16Base width
height: u16Base height
color_depth: AsepriteColorDepthThe color depth used
flags: u32Flags 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: u8Palette entry which should be considered transparent
This is only useful for indexed colors
color_count: u16The amount of colors in the palette
pixel_width: u8Width of one pixel
pixel_height: u8Height of one pixel
grid_x: i16Grid x start position
grid_y: i16Grid y start position
grid_width: u16Grid width
grid_height: u16Grid 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