此为 Mathematica 7 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.2)
Import/Export 导入/导出 格式

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.
  • PICT Export is available in Mathematica versions for Mac OS X.
  • Export fully supports the PICT format for raster images.
  • 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.
  • Data representation elements:
"Data"array of color values
"Graphics"Graphics object representing an image
"Image"raster image, represented 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.
  • General option:
ImageSizeAutomaticoverall image size
Create a raster image and export it to PICT:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
 
Export an arbitrary expression to the PICT format, giving the result as a string:
In[1]:=
Click for copyable input
Out[1]=
 
Mathematica can export arbitrary expressions to PICT:
In[1]:=
Click for copyable input
Out[1]=