Content deleted Content added
Citation bot (talk | contribs) Altered template type. | Use this bot. Report bugs. | Suggested by Abductive | Category:Self-contradictory articles from January 2024 | #UCB_Category 25/34 |
m Reverted edit by Manwichosu (talk) to last version by Timwi |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 164:
|-
|align="center" width="60" rowspan="4"| Row 0
|align="center" style="background:#ffafaf;font-family: monospace"| R R R R R R R R R
|-
|align="center" style="background:#afffaf;font-family: monospace"| G G G G G G G G G
|-
|align="center" style="background:#afafff;font-family: monospace"| B B B B B B B B B
|-
|align="center" style="background:#cfcfcf;font-family: monospace"| A A A A A A A A A
|-
|align="center" rowspan="4"| Row 1
|align="center" style="background:#ffafaf;font-family: monospace"| R R R R R R R R R
|-
|align="center" style="background:#afffaf;font-family: monospace"| G G G G G G G G G
|-
|align="center" style="background:#afafff;font-family: monospace"| B B B B B B B B B
|-
|align="center" style="background:#cfcfcf;font-family: monospace"| A A A A A A A A A
|-
|align="center" style="height:64px"| Row 2 etc.||align="center"| ....
Line 201:
A PCX file has space in its header for a 16 color palette. When 256-color VGA hardware became available there was not enough space for the palette in a PCX file; even the 54 unused bytes after the header would not be enough. The solution chosen was to put the palette at the end of the file, along with a marker byte to confirm its existence.
If a PCX file has a 256-color palette, it is found 768 bytes from the end of the file. In this case the value in the byte preceding the palette should be 12 (0x0C). The palette is stored as a sequence of RGB triples; its usable length is defined by the number of colors in the image.
==References==
|