PICT (.pict, .pct, .pic)


    • MIME type: image/pict
    • Macintosh graphics format.
    • Was the original metafile format of the Apple Macintosh.
    • PICT is an acronym derived from Picture.
    • Can store raster images and vector graphics.
    • Binary format.
    • Developed in 1984 by Apple.

Import & Export

  • Export["file.pct",expr] exports graphics or any other expression as an image to a PICT file.
  • Export["file.pct",expr] creates a PICT image with the same image size as the displayed form of expr.
  • Because PICT is a raster image format, all fonts are rasterized on export.
  • Export["file.pct",expr,elem] creates a PICT file by treating expr as specifying element elem.
  • Export["file.pct",{expr1,expr2,},{{elem1,elem2,}}] treats each expri as specifying the corresponding elemi.
  • Export["file.pct",expr,opt1->val1,] exports expr with the specified option elements taken to have the specified values.
  • Export["file.pct",{elem1->expr1,elem2->expr2,},"Rules"] uses rules to specify the elements to be exported.
  • See the reference pages for full general information on Export.
  • ExportString supports the PICT format.

Import Elements

  • 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
  • Export by default uses the "Image" element for PICT files.



Basic Examples  (3)

Create a raster image and export it to PICT:

Click for copyable input
Click for copyable input

Export an arbitrary expression to the PICT format, giving the result as a string:

Click for copyable input

The Wolfram Language can export arbitrary expressions to PICT:

Click for copyable input
Introduced in 2007
Updated in 2008