mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-01 01:20:25 +00:00
Add note about size of chunks and properties on .aseprite specs
This commit is contained in:
parent
33a6a1c97e
commit
cbe62e09e3
@ -116,6 +116,10 @@ Then each chunk format is:
|
|||||||
WORD Chunk type
|
WORD Chunk type
|
||||||
BYTE[] Chunk data
|
BYTE[] Chunk data
|
||||||
|
|
||||||
|
The chunk size includes the DWORD of the size itself, and the WORD of
|
||||||
|
the chunk type, so a chunk size must be equal or greater than 6 bytes
|
||||||
|
at least.
|
||||||
|
|
||||||
## Chunk Types
|
## Chunk Types
|
||||||
|
|
||||||
### Old palette chunk (0x0004)
|
### Old palette chunk (0x0004)
|
||||||
@ -377,6 +381,8 @@ The data of this chunk is as follows:
|
|||||||
BYTE Color Alpha (0-255)
|
BYTE Color Alpha (0-255)
|
||||||
+ If flags have bit 4
|
+ If flags have bit 4
|
||||||
DWORD Size in bytes of all properties maps stored in this chunk
|
DWORD Size in bytes of all properties maps stored in this chunk
|
||||||
|
The size includes the this field and the number of property maps
|
||||||
|
(so it will be a value greater or equal to 8 bytes).
|
||||||
DWORD Number of properties maps
|
DWORD Number of properties maps
|
||||||
+ For each properties map:
|
+ For each properties map:
|
||||||
DWORD Properties maps key
|
DWORD Properties maps key
|
||||||
|
Loading…
x
Reference in New Issue
Block a user