PCX (.pcx)
Background & Context
-
- Common MIME types: application/pcx, image/pcx
- Paintbrush PCX format.
- Raster image format.
- Legacy format used on Microsoft DOS.
- Binary format.
- Compresses image data using run-length encoding after restriction to a color map.
- Can also store true color raster images.
- Developed by ZSoft as part of the PC Paintbrush application.
Import & Export
- Import["file.pcx"] imports a PCX file, returning an Image object.
- Import["file.pcx",elem] imports the specified element from a PCX file.
- The import format can be specified with Import["file","PCX"] or Import["file",{"PCX",elem,…}].
- Export["file.pcx",expr] exports an image, graphics, or any other expression as a raster image to PCX.
- When exporting Wolfram Language graphics or arbitrary expressions to PCX, the resulting image has the same raster size as its displayed form.
- Because PCX is a raster image format, all fonts are rasterized on export.
- See the following reference pages for full general information:
-
Import, Export import from or export to a file CloudImport, CloudExport import from or export to a cloud object ImportString, ExportString import from or export to a string ImportByteArray, ExportByteArray import from or export to a byte array
Import Elements
- General Import elements:
-
"Elements" list of elements and options available in this file "Summary" summary of the file "Rules" list of rules for all available elements - Data representation elements:
-
"Data" array of color values "Graphics" Graphics object representing an image "Image" raster image, given as an Image object - Import and Export by default use the "Image" element for PCX files.
- Advanced Import elements:
-
"BitDepth" bits used to represent each color channel in the file "Channels" the number of color channels used in the file "ColorSpace" color encoding used in the file "ImageSize" raster dimensions "Summary" summary of the file