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

# StencilComp(3)

bitmap component subject, view, and PostScript external representation

## NAME

StencilComp, StencilView, PSStencil - bitmap component subject, view, and PostScript external representation

## SYNOPSIS

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

## DESCRIPTION

StencilComp is a GraphicComp that represents a bitmapped image.  It uses a Stencil graphic to store its graphical attributes.  StencilView is a GraphicView for displaying the bitmapped image.  PSStencil is a PostScriptView that externalizes the subject's information in PostScript form.

## STENCILCOMP PUBLIC OPERATIONS

- **StencilComp(Stencil\* = nil, const char\* filename = nil)**

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

- **Stencil\* GetStencil()**

  Return the Stencil graphic that defines the stencil's attributes. GetStencil is simply a more specific form of the GetGraphic operation.

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

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

## STENCILVIEW PUBLIC OPERATIONS

- **StencilView(StencilComp\* = nil)**

  Create an StencilView, optionally supplying the subject.

- **StencilComp\* GetStencilComp()**

  Return the subject.

## PSSTENCIL PUBLIC OPERATIONS

- **PSStencil(StencilComp\* = nil)**

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

## SEE ALSO

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