---
name: "RasterComp"
section: "3"
platform: "linux"
package: "ivtools-dev"
version: "1.1.3-4"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/RasterComp"
---

# RasterComp(3)

raster component subject, view, and PostScript external representation

## NAME

RasterComp, RasterView, PSRaster - raster component subject, view, and PostScript external representation

## SYNOPSIS

**#include \<Unidraw/Components/rastercomp.h\>**

## DESCRIPTION

RasterComp is a GraphicComp that represents a raster image.  It uses a RasterRect graphic to store its graphical attributes.  RasterView is a GraphicView for displaying the raster image.  PSRaster is a PostScriptView that externalizes the subject's information in PostScript form.

## RASTERCOMP PUBLIC OPERATIONS

- **RasterComp(RasterRect\* = nil, const char\* filename = nil)**

  The constructor takes an optional RasterRect structured graphic that defines the attributes of the raster image.  You can also supply an optional file name to associate the component with a file containing the (copious) image data.

- **RasterRect\* GetRasterRect()**

  Return the RasterRect graphic that defines the raster's attributes. GetRaster is simply a more specific form of the GetGraphic operation.

- **const char\* GetFileName()**

  Return the file name specified in the constructor, if any.

## RASTERVIEW PUBLIC OPERATIONS

- **RasterView(RasterComp\* = nil)**

  Create an RasterView, optionally supplying the subject.

- **RasterComp\* GetRasterComp()**

  Return the subject.

## PSRASTER PUBLIC OPERATIONS

- **PSRaster(RasterComp\* = nil)**

  Construct a PostScript external representation of the given subject, if any.

## SEE ALSO

GraphicComp(3U), GraphicView(3U), PostScriptView(3U), RasterRect(3U)
