Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Graphics and Sound / Graphics Primitives  /
Raster

  • Raster[ , , ... , ... ] is a two-dimensional graphics primitive which represents a rectangular array of gray cells.
  • Raster[ array , ColorFunction -> f ] specifies that each cell should be rendered using the graphics directives obtained by applying the function f to the cell value .
  • Raster[ array , ColorFunction -> Hue] generates an array in which cell values are specified by hues.
  • If array has dimensions m , n , then Raster[ array ] is assumed to occupy the rectangle Rectangle[ 0, 0 , m , n ].
  • Raster[ array , xmin , ymin , xmax , ymax ] specifies that the raster should be taken instead to fill the rectangle Rectangle[ xmin , ymin , xmax , ymax ].
  • Scaled and Offset can be used to specify the coordinates for the rectangle.
  • Raster[ array , rect , zmin , zmax ] specifies that cell values should be scaled so that zmin corresponds to 0 and zmax corresponds to 1. Cell values outside this range are clipped.
  • See the Mathematica book: Section 2.9.2Section 2.9.2.
  • See also: RasterArray, DensityGraphics, GraphicsArray.

    Further Examples

    This uses an array of values as gray levels in a raster.

    Evaluate the cell to see the graphic.

    In[1]:=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.