logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

UStencil - structured graphic displaying a bitmap

Description

       A UStencil is a Graphic that displays a bitmapped image.  Two Bitmap objects, an image and a mask, define
       a stencil's appearance.  The stencil potentially paints foreground color where image has a true value and
       background  color  where image is false, but only pixels that have a corresponding true value in mask are
       thus affected.  The stencil's origin coincides with the origins of the image and mask bitmaps. The mask's
       bounding box defines the stencil's extent.

Name

       UStencil - structured graphic displaying a bitmap

Public Operations

UStencil(Bitmap*image,Bitmap*mask=nil,Graphic*=nil)
              Construct a UStencil, supplying an image and an optional mask bitmap and an optional graphic  from
              which  to  obtain  an  initial  set  of  graphics state.  Specifying nil for mask is equivalent to
              supplying a mask of the same size and shape as image that contains all true values.

       voidGetOriginal(Bitamp*&,Bitmap*&)
              Return the bitmap parameters supplied in the constructor.

See Also

Bitmap(3I), Graphic(3U)

Unidraw                                          2 February 1991                                    UStencil(3U)

Synopsis

#include<Unidraw/Graphic/stencil.h>

See Also