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

Pattern - fill patterns

Description

       A  pattern  defines  how  to  fill areas during graphics operations.  A pattern is essentially a mask for
       drawing that is replicated to fill the size of the destination.

       N.B.: Patterns are relatively low-level objects, typically used to implement an alpha value for a  color.
       Since the color object now supports an alpha value, there is no need to use patterns.

Name

       Pattern - fill patterns

Public Operations

Pattern()
              Create a solid pattern.

       Pattern(char*,unsignedintwidth,unsignedintheight)
              Create a pattern with the given width and height, using the bits described by the first parameter.

       Pattern(int)
              Create a 4x4 pattern determined from the least significant 16 bits of the parameter.

       Pattern(int*)
              Construct  a  16x16  pattern  from  the given data.  This function is provided solely for backward
              compatibility and will be removed in the future.

       Pattern(Bitmap*)
              Construct a pattern from the bitmap.  If necessary, the bitmap  will  be  tiled  or  truncated  to
              satisfy window system requirements for fill pattern sizes.

See Also

Painter(3I)

InterViews Reference Manual                                                                          Pattern(3I)

Synopsis

#include<InterViews/pattern.h>

See Also