PXR (.pxr)

Pixar image format.
Raster image format.
Legacy format used in computer animation production systems and in medical imaging.
PXR is an acronym derived from Pixar.
Stores images as RGB or grayscale bitmaps at a resolution of 8 bits per channel.
Binary format.
Does not use compression.
Developed in 1986 by Pixar for the Pixar Image Computer workstation.

Import and ExportImport and Export

  • Import["file.pxr"] imports a PXR file, returning an Image object.
  • Export["file.pxr",expr] exports graphics or any other expression as an image to a PXR file.
  • When exporting Wolfram Language graphics or arbitrary expressions to PXR, the resulting image has the same raster size as its displayed form.
  • Image objects are by default exported at their raster size.
  • Because PXR is a raster image format, all fonts are rasterized on export.
  • Import["file.pxr",elem] imports the specified element from a PXR file.
  • Import["file.pxr",{elem,suba,subb,}] imports a subelement.
  • Import["file.pxr",{{elem1,elem2,}}] imports multiple elements.
  • The import format can be specified with Import["file","PXR"] or Import["file",{"PXR",elem,}].
  • Export["file.pxr",expr,elem] creates a PXR file by treating expr as specifying element elem.
  • Export["file.pxr",{expr1,expr2,},{{elem1,elem2,}}] treats each as specifying the corresponding .
  • Export["file.pxr",expr,opt1->val1,] exports expr with the specified option elements taken to have the specified values.
  • Export["file.pxr",{elem1->expr1,elem2->expr2,},"Rules"] uses rules to specify the elements to be exported.
  • See the reference pages for full general information on Import and Export.
  • ImportString and ExportString support the PXR format.

ElementsElements

  • General Import elements:
  • "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
    "GrayLevels"array of normalized gray-level values
    "Image"raster image, given as an Image object
  • "RGBColorArray"array of RGBColor objects
  • Import and Export by default use the element for PXR files.
  • Advanced Import elements:
  • "BitDepth"bits used to represent each color channel in the file
    "ColorSpace"color encoding used in the file
    "ImageSize"raster dimensions

OptionsOptions

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Import a PXR bitmap and render it as a graphic:

In[1]:=
Click for copyable input
Out[1]=

Create a raster image using DensityPlot and export it to a PXR file:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2007
(6.0)
| Updated in 2008
(7.0)