Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ustencil(3u) [debian man page]

UStencil(3U)						    InterViews Reference Manual 					      UStencil(3U)

NAME
UStencil - structured graphic displaying a bitmap SYNOPSIS
#include <Unidraw/Graphic/stencil.h> 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. 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. void GetOriginal(Bitamp*&, Bitmap*&) Return the bitmap parameters supplied in the constructor. SEE ALSO
Bitmap(3I), Graphic(3U) Unidraw 2 February 1991 UStencil(3U)

Check Out this Related Man Page

Bitmap(3)						User Contributed Perl Documentation						 Bitmap(3)

NAME
Tk::Bitmap - Images that display two colors SYNOPSIS
$image = $widget->Bitmap?(name??,options?) DESCRIPTION
A bitmap is an image whose pixels can display either of two colors or be transparent. A bitmap image is defined by four things: a background color, a foreground color, and two bitmaps, called the source and the mask. Each of the bitmaps specifies 0/1 values for a rectangular array of pixels, and the two bitmaps must have the same dimensions. For pixels where the mask is zero, the image displays nothing, producing a transparent effect. For other pixels, the image displays the foreground color if the source data is one and the background color if the source data is zero. CREATING BITMAPS
Bitmaps are created using $widget->Bitmap. Bitmaps support the following options: -background => color Specifies a background color for the image in any of the standard ways accepted by Tk. If this option is set to an empty string then the background pixels will be transparent. This effect is achieved by using the source bitmap as the mask bitmap, ignoring any -maskdata or -maskfile options. -data => string Specifies the contents of the source bitmap as a string. The string must adhere to X11 bitmap format (e.g., as generated by the bitmap program). If both the -data and -file options are specified, the -data option takes precedence. -file => name name gives the name of a file whose contents define the source bitmap. The file must adhere to X11 bitmap format (e.g., as generated by the bitmap program). -foreground => color Specifies a foreground color for the image in any of the standard ways accepted by Tk. -maskdata => string Specifies the contents of the mask as a string. The string must adhere to X11 bitmap format (e.g., as generated by the bitmap program). If both the -maskdata and -maskfile options are specified, the -maskdata option takes precedence. -maskfile => name name gives the name of a file whose contents define the mask. The file must adhere to X11 bitmap format (e.g., as generated by the bitmap program). IMAGE METHODS
When a bitmap image is created, Tk also creates a new object. This object supports the configure and cget methods described in Tk::options which can be used to enquire and modify the options described above. SEE ALSO
Tk::Image Tk::Pixmap Tk::Photo KEYWORDS
bitmap, image perl v5.16.3 2014-06-10 Bitmap(3)
Man Page