Custom object (.pxpc files)

If you're not familiar with the basic models or how .px* file encoding works, please revisit Binary specs.

Custom object

Contains the data for custom objects

Header (16 bytes)

UInt32    Total size of this model
UInt16    Backward compatibility, ignore this

Content

UInt8        Color depth
    0 - RGBA
    1 - Indexed
Size         Content size
[UInt8]      Depending on the color depth, this will contain different data.
    RGBA - in the form of [ARGBColor]
    Indexed - [Index]
    NOTE: There is no length prefix to this array. The size is known using the 
    Content size and Color depth field, so no need for it
[ARGBColor]  The palette

Last updated

Was this helpful?