VGFM Graphics Format

From ModdingWiki
Jump to navigation Jump to search
VGFM Graphics Format
VGFM Graphics Format.png
Format typeImage
HardwareVGA
Colour depth8-bit (VGA)
Minimum size (pixels)0×0
Maximum size (pixels)65535×65535
PaletteExternal
Plane count4
Transparent pixels?No
Hitmap pixels?No
Games

The VGFM Graphics Format is used by Vinyl Goddess From Mars to store images used for various game elements, primarily the user-interface.

Signature

There is no signature, but reading the width and height, and multiplying this out, should match the size of the file, and also the length given in the header.

File format

Data type Name Description
UINT16LE length Length of data, in bytes (not including this field)
UINT16LE width Width of one plane, in pixels
UINT16LE height Height of the image, in pixels
UINT8[width * 4 * height] pixelData Pixel data

The width field must be multiplied by four to get the width of the image in pixels.

The pixel data is in VGFM Screen Format although the dimensions in the header are used rather than the format being fixed at 320×200.

Credits

This file format was reverse engineered by Malvineous. If you find this information helpful in a project you're working on, please give credit where credit is due. (A link back to this wiki would be nice too!)