Mathematica > Data Manipulation > Importing and Exporting > PCX (.pcx) >

PCX (.pcx)

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 and Export fully support Version 5 of the PCX format.
  • Export exports an image, graphics, or any other expression as a raster image to PCX.
  • When exporting Mathematica 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.
  • Import imports the specified element from a PCX file.
  • Import imports multiple elements.
  • The import format can be specified with Import["file", "PCX"] or Import.
  • Export creates a PCX file by treating expr as specifying element elem.
  • Export treats each as specifying the corresponding .
  • Export exports expr with the specified option elements taken to have the specified values.
  • Export uses rules to specify the elements to be exported.
  • See the reference pages for full general information on Import and Export.
"Elements" list of elements and options available in this file
"Rules"full list of rules for each element and option
"Options"list of rules for options, properties, and settings
  • Data representation elements:
"Data"array of color values
"Graphics"Graphics object representing an image
"Image"raster image, given as an Image object
"GrayLevels"array of normalized gray-level values
"RGBColorArray"array of RGBColor objects
"BitDepth"bits used to represent each color channel in the file
"ColorSpace"color encoding used in the file
"ImageSize"raster dimensions
  • General option:
ImageSizeAutomaticoverall image size
This imports a PCX example file:
Export an image object to PCX:
This imports a PCX example file:
In[1]:=
Click for copyable input
Out[1]=
 
Export an image object to PCX:
In[1]:=
Click for copyable input
Out[1]=
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF