Everything Totally Explained


Ask & we'll explain, totally!
PCX
Totally Explained


  FOR SALE!Either this or the left-hand panel are available for just $19.95 per
day, or you can have both for only $34.95! Contact us for details.  


View this entry using RSS

Everything about Pcx totally explained

PCX is an image file format developed by the ZSoft Corporation of Marietta, Georgia, USA. It was the native file format for PC Paintbrush (PCX = "PC Paintbrush Exchange") and became one of the first widely accepted DOS imaging standards, although its use has since been succeeded by more sophisticated image formats such as GIF, JPEG, and PNG.

Typical file format

The PCX is a device-independent raster image format; the file header stores information about the display hardware (screen resolution, color depth and palette information, bit planes and so on) separately from the actual image information, allowing the image to be properly transferred and displayed on computer systems with different hardware. PCX files commonly store palette-indexed images ranging from 2 or 4 colors to 16 and 256 colors, although the format has been extended to record true-color (24-bit) images as well.
   PCX image data is compressed using run-length encoding (RLE), a simple algorithm which collapses series of three or more consecutive bytes with identical colors into a two-byte pair. As the file is processed, the most-significant bit is used as a control switch (flag) to determine whether the given data represents a single pixel of a given palette index or color value, or an RLE pair representing a series of several pixels of a single value.
   Due to the use of the two most-significant bits as flags, in PCX files with a 256-color palette, color indexes 192 to 255 (with their most-significant bit already set) must be stored in an RLE byte pair even when they only occur one or two pixels in succession, whereas color indexes 0 to 193 can be stored directly or in RLE byte pairs (whichever is more space-efficient); therefore, the actual compression ratio could be optimized with proper sorting of palette entries (though this wouldn't be feasible if the file must share its color palette with other images). For example, a palette could be optimized with the most commonly-used colors occurring in palette positions 0 to 191 and the least common colors allocated to the remaining quarter of the palette, this RLE scheme makes a trade off, it can have more un-chunked data but the maximum chunk length is 63 (compared to the 128 possible with TGA RLE compression). Another inefficiency with the RLE algorithm is that it's possible to store chunks with a length of 0, which allows whitespace in the file (which could be used for steganography), however this does allow it to be decoded a cycle quicker on some processors (namely on the DOS machines it was originally intended for).
   The RLE compression algorithm required very little processor power or memory to apply — a significant concern with the computer systems of its day — but as computers and display hardware grew more sophisticated, the RLE algorithm became less space-efficient, as it was unable to compress dithered images such as photographs or complex computer graphics.

Multipage PCX

There is a multi-page version of PCX which is used by some computer fax and document management programs, using the file extension DCX.

Further Information

Get more info on 'Pcx'.


External Link Exchanges

Do you know how hard it is to get a link from a large encyclopaedia? Well we're different and will prove it. To get a link from us just add the following HTML to your site on a relevant page:

    <a href="http://pcx.totallyexplained.com">PCX Totally Explained</a>

Then simply click through this link from your web page. Our crawlers will verify your link, extract the title of your web page and instantly add a link back to it. If you like you can remove the words Totally Explained and embed the link in article text.
   As long as your link remains in place, we'll keep our link to you right here. Please play fair - our crawlers are watching. Your site must be closely related to this one's topic. Any kind of spamming, dubious practises or removing the link will result in your link from us being dropped and, potentially, your whole site being banned.



Copyright © 2007-8 totallyexplained.com | Licensed under the GNU Free Documentation License | Site Map
This article contains text from the Wikipedia article PCX (History) and is released under the GFDL | RSS Version