Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Header ¶
type Header struct { Marker byte // The first byte of a PCX file is 0x0a. Version byte // The second byte (the version number) is 0, 2, 3, 4, or 5. Encoding byte // The third byte (the encoding) is 1 or (rarely) 0. BitsPerPixelPerPlane byte WindowXMin uint16 // ImageWidth = Xmax - Xmin + 1 WindowYMin uint16 // ImageHeight = Ymax - Ymin + 1 WindowXMax uint16 // a 200px high image would have Ymin=0 Ymax=199 WindowYMax uint16 VerticalDPI uint16 // unreliable HorizontalDPI uint16 // unreliable Palette16 [48]byte // 16 color palette in header NumPlanes byte BytesPerPlaneLine uint16 PaletteInfo uint16 // How to interpret the palette 1 = Color/BW 2 = Grayscale HorizontalScreenSize uint16 VerticalScreenSize uint16 // contains filtered or unexported fields }
Header holds information about a pcx file
Click to show internal directories.
Click to hide internal directories.