XYZ Image

XYZ is RPG2000/2003's own file-format of compressed 8bit-indexed graphics, inside RPG_RT.exe it is also referenced as "Original Graphics Format". There never was an official easy way to create XYZ-files, they could only be created by exporting graphics that are already in a project with the RPG Maker's MaterialManager. Nowadays there're multiple converters for it.

Header

Each graphic-file starts with the format-key "XYZ1" followed by two 2 words (= 2 bytes each) containing the image's width and height in pixels (1~65535).

File Content

The entire post-header-content is compressed with ZLib's Deflate algorythm.

Palette

This structure contains 256 color-entries (3 bytes each) that are later referenced in the graphic itself.

SizeContentValue
1Red0~255
1Green0~255
1Blue0~255

Pixels

This structure contains a number of bytes calculated from multiplying the defined width by height.

SizeContentValue
1ColorID0~255