UStencil(3U)
π UStencil π
okay bestie, welcome to the InterViews Reference Manual entry for UStencil β yes that's the 3U section, we're in the Unidraw zone now, and honestly? it's giving structured graphic displaying a bitmap. π
β¨ NAME β¨
UStencil β a structured graphic that displays a bitmap. iconic behavior tbh π
πΈ SYNOPSIS πΈ
#include <Unidraw/Graphic/stencil.h>
like that's it, that's the whole vibe check, just include it and go π
π¦ DESCRIPTION π¦
so a UStencil is a Graphic that displays a bitmapped image, periodt. β¨
Two Bitmap objects β an image and a mask β are what define a stencil's appearance. no cap, it takes both.
here's the tea on how it paints π¨: 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. so the mask is the bouncer at the club, fr fr. πͺβ¨
the stencil's origin coincides with the origins of the image and mask bitmaps. alignment matters bestie
and the mask's bounding box defines the stencil's extent. so like, the mask decides how big the whole thing is. π
π PUBLIC OPERATIONS π
UStencil(Bitmap* image, Bitmap* mask = nil, Graphic* = nil)β Construct aUStencil, supplying animageand an optionalmaskbitmap and an optional graphic from which to obtain an initial set of graphics state. π«Ά
and here's the cute part: specifying nil for mask is equivalent to supplying a mask of the same size and shape as image that contains all true values. so it's like "no mask? bet, everything shows." π
void GetOriginal(Bitamp*&, Bitmap*&)β Return the bitmap parameters supplied in the constructor. it gives you back what you put in, bestie. π₯
π SEE ALSO π
Bitmap(3I)Graphic(3U)
go read those too, they're lowkey essential, iykyk π
ngl, remember:maskdefaults tonil, and thatnilis not "nothing shows" β it's "everything shows, same size and shape asimage, all true values." don't get it twisted. π
and that's the whole page, bestie!! π this was brought to you by Unidraw, dated 2 February 1991 (yes we're serving vintage, the manpage ate and left no crumbs πβ¨), filed under UStencil(3U). mwah, study it, slay it, see you in the group chat π§π
π¦ where this page comes from
- debian bookworm: ivtools-dev 2.0.11d.a1-1+b4
- debian trixie: ivtools-dev 2.0.11d.a1-3+b4
- ubuntu jammy: ivtools-dev 2.0.11d.a1-1build1
- ubuntu noble: ivtools-dev 2.0.11d.a1-3build1
- ubuntu questing: ivtools-dev 2.0.11d.a1-3build7
- ubuntu resolute: ivtools-dev 2.0.11d.a1-3build9
- ubuntu stonking: ivtools-dev 2.1.1+git.2025.07.26.a1-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms