HatchStyle enumeration (gdiplusenums.h)

The HatchStyle enumeration specifies the hatch pattern used by a brush of type HatchBrush. The hatch pattern consists of a solid background color and lines drawn over the background.

Syntax

typedef enum HatchStyle {
  HatchStyleHorizontal,
  HatchStyleVertical,
  HatchStyleForwardDiagonal,
  HatchStyleBackwardDiagonal,
  HatchStyleCross,
  HatchStyleDiagonalCross,
  HatchStyle05Percent,
  HatchStyle10Percent,
  HatchStyle20Percent,
  HatchStyle25Percent,
  HatchStyle30Percent,
  HatchStyle40Percent,
  HatchStyle50Percent,
  HatchStyle60Percent,
  HatchStyle70Percent,
  HatchStyle75Percent,
  HatchStyle80Percent,
  HatchStyle90Percent,
  HatchStyleLightDownwardDiagonal,
  HatchStyleLightUpwardDiagonal,
  HatchStyleDarkDownwardDiagonal,
  HatchStyleDarkUpwardDiagonal,
  HatchStyleWideDownwardDiagonal,
  HatchStyleWideUpwardDiagonal,
  HatchStyleLightVertical,
  HatchStyleLightHorizontal,
  HatchStyleNarrowVertical,
  HatchStyleNarrowHorizontal,
  HatchStyleDarkVertical,
  HatchStyleDarkHorizontal,
  HatchStyleDashedDownwardDiagonal,
  HatchStyleDashedUpwardDiagonal,
  HatchStyleDashedHorizontal,
  HatchStyleDashedVertical,
  HatchStyleSmallConfetti,
  HatchStyleLargeConfetti,
  HatchStyleZigZag,
  HatchStyleWave,
  HatchStyleDiagonalBrick,
  HatchStyleHorizontalBrick,
  HatchStyleWeave,
  HatchStylePlaid,
  HatchStyleDivot,
  HatchStyleDottedGrid,
  HatchStyleDottedDiamond,
  HatchStyleShingle,
  HatchStyleTrellis,
  HatchStyleSphere,
  HatchStyleSmallGrid,
  HatchStyleSmallCheckerBoard,
  HatchStyleLargeCheckerBoard,
  HatchStyleOutlinedDiamond,
  HatchStyleSolidDiamond,
  HatchStyleTotal,
  HatchStyleLargeGrid,
  HatchStyleMin,
  HatchStyleMax
} ;

Constants

 
HatchStyleHorizontal
Specifies horizontal lines.




Illustration of an ellipse filled with widely spaced horizontal lines over a background color
HatchStyleVertical
Specifies vertical lines.


Illustration of an ellipse filled with widely spaced vertical lines over a background color
HatchStyleForwardDiagonal
Specifies diagonal lines that slant to the right from top points to bottom points. The lines are antialiased.


Illustration of an ellipse filled with slanting lines over a background color
HatchStyleBackwardDiagonal
Specifies diagonal lines that slant to the left from top points to bottom points. The lines are antialiased.


Illustration of an ellipse filled with slanting lines over a background color
HatchStyleCross
Specifies horizontal and vertical lines that cross at 90-degree angles.


Illustration of an ellipse filled with a grid of horizontal and vertical lines over a background color
HatchStyleDiagonalCross
Specifies forward diagonal and backward diagonal lines that cross at 90-degree angles. The lines are antialiased.


Illustration of an ellipse filled with a grid of diagonal lines over a background color
HatchStyle05Percent
Specifies a 5-percent hatch. The ratio of foreground color to background color is 5:100.


Illustration of an ellipse filled with sparse, evenly spaced dots over a background color
HatchStyle10Percent
Specifies a 10-percent hatch. The ratio of foreground color to background color is 10:100.


Illustration of an ellipse filled with evenly spaced dots over a background color
HatchStyle20Percent
Specifies a 20-percent hatch. The ratio of foreground color to background color is 20:100.


Illustration of an ellipse filled with dense, evenly spaced dots over a background color
HatchStyle25Percent
Specifies a 25-percent hatch. The ratio of foreground color to background color is 25:100.


Illustration of an ellipse filled with very dense, evenly spaced dots over a background color
HatchStyle30Percent
Specifies a 30-percent hatch. The ratio of foreground color to background color is 30:100.


Illustration of an ellipse filled with a dense, diagonal dot grid over a background color
HatchStyle40Percent
Specifies a 40-percent hatch. The ratio of foreground color to background color is 40:100.


Illustration of an ellipse filled with tiny checkerboard with cutouts shaped like plus signs, over a background color
HatchStyle50Percent
Specifies a 50-percent hatch. The ratio of foreground color to background color is 50:100.


Illustration of an ellipse filled with a tiny checkerboard over a background color
HatchStyle60Percent
Specifies a 60-percent hatch. The ratio of foreground color to background color is 60:100.


Illustration of an ellipse filled with a diagonal grid of plus-signs over a background color
HatchStyle70Percent
Specifies a 70-percent hatch. The ratio of foreground color to background color is 70:100.


Illustration of an ellipse filled with a dense, diagonal dot grid over a background color
HatchStyle75Percent
Specifies a 75-percent hatch. The ratio of foreground color to background color is 75:100.


Illustration of an ellipse filled with a wide, diagonal grid over a background color
HatchStyle80Percent
Specifies an 80-percent hatch. The ratio of foreground color to background color is 80:100.


Illustration of an ellipse filled with a wider, diagonal grid over a background color
HatchStyle90Percent
Specifies a 90-percent hatch. The ratio of foreground color to background color is 90:100.


Illustration of an ellipse filled with the widest, diagonal grid over a background color
HatchStyleLightDownwardDiagonal
Specifies diagonal lines that slant to the right from top points to bottom points and are spaced 50 percent closer together than HatchStyleForwardDiagonal but are not antialiased.


Illustration of an ellipse filled with slanting lines over a background color
HatchStyleLightUpwardDiagonal
Specifies diagonal lines that slant to the left from top points to bottom points and are spaced 50 percent closer together than HatchStyleBackwardDiagonal but are not antialiased.


Illustration of an ellipse filled with slanting lines over a background color
HatchStyleDarkDownwardDiagonal
Specifies diagonal lines that slant to the right from top points to bottom points, are spaced 50 percent closer together than HatchStyleForwardDiagonal, and are twice the width of HatchStyleForwardDiagonal but are not antialiased.


Illustration of an ellipse filled with wide, slanting lines over a background color
HatchStyleDarkUpwardDiagonal
Specifies diagonal lines that slant to the left from top points to bottom points, are spaced 50 percent closer together than HatchStyleBackwardDiagonal, and are twice the width of HatchStyleBackwardDiagonal but are not antialiased.


Illustration of an ellipse filled with wide, slanting lines over a background color
HatchStyleWideDownwardDiagonal
Specifies diagonal lines that slant to the right from top points to bottom points, have the same spacing as HatchStyleForwardDiagonal, and are triple the width of HatchStyleForwardDiagonal but are not antialiased.


Illustration of an ellipse filled with wide, widely-spaced, slanting lines over a background color
HatchStyleWideUpwardDiagonal
Specifies diagonal lines that slant to the left from top points to bottom points, have the same spacing as HatchStyleBackwardDiagonal, and are triple the width of HatchStyleBackwardDiagonal but are not antialiased.


Illustration of an ellipse filled with widely-spaced, wide, slanting lines over a background color
HatchStyleLightVertical
Specifies vertical lines that are spaced 50 percent closer together than HatchStyleVertical.


Illustration of an ellipse filled with vertical lines over a background color
HatchStyleLightHorizontal
Specifies horizontal lines that are spaced 50 percent closer together than HatchStyleHorizontal.


Illustration of an ellipse filled with horizontal lines over a background color
HatchStyleNarrowVertical
Specifies vertical lines that are spaced 75 percent closer together than HatchStyleVertical (or 25 percent closer together than HatchStyleLightVertical).


Illustration of an ellipse filled with densely-spaced, vertical lines over a background color
HatchStyleNarrowHorizontal
Specifies horizontal lines that are spaced 75 percent closer together than HatchStyleHorizontal ( or 25 percent closer together than HatchStyleLightHorizontal).


Illustration of an ellipse filled with densely-spaced, horizontal lines over a background color
HatchStyleDarkVertical
Specifies vertical lines that are spaced 50 percent closer together than HatchStyleVerical and are twice the width of HatchStyleVertical.


Illustration of an ellipse filled with wide vertical lines over a background color
HatchStyleDarkHorizontal
Specifies horizontal lines that are spaced 50 percent closer together than HatchStyleHorizontal and are twice the width of HatchStyleHorizontal.


Illustration of an ellipse filled with wide horizontal lines over a background color
HatchStyleDashedDownwardDiagonal
Specifies horizontal lines that are composed of forward diagonals.


Illustration of an ellipse filled with rows of slash characters over a background color
HatchStyleDashedUpwardDiagonal
Specifies horizontal lines that are composed of backward diagonals.


Illustration of an ellipse filled with rows of backslash characters over a background color
HatchStyleDashedHorizontal
Specifies horizontal dashed lines.


Illustration of an ellipse filled with dashed horizontal lines over a background color
HatchStyleDashedVertical
Specifies vertical dashed lines.


Illustration of an ellipse filled with dashed vertical lines over a background color
HatchStyleSmallConfetti
Specifies a hatch that has the appearance of confetti.


Illustration of an ellipse filled with dots that form horizontal zig-zag lines, over a background color
HatchStyleLargeConfetti
Specifies a hatch that has the appearance of confetti composed of larger pieces than HatchStyleSmallConfetti.


Illustration of an ellipse filled with wider dots in an irregular but repeating pattern, over a background color
HatchStyleZigZag
Specifies horizontal lines of zigzags.


Illustration of an ellipse filled with horizontal zig-zag lines over a background color
HatchStyleWave
Specifies horizontal lines of tildes.


Illustration of an ellipse filled with lines of tilde characters over a background color
HatchStyleDiagonalBrick
Specifies a hatch that has the appearance of a wall of bricks laid in a backward diagonal direction.


Illustration of an ellipse filled with a diagonal brick pattern over a background color
HatchStyleHorizontalBrick
Specifies a hatch that has the appearance of a wall of bricks laid horizontally.


Illustration of an ellipse filled with a horizontal brick pattern over a background color
HatchStyleWeave
Specifies a hatch that has the appearance of a woven material.


Illustration of an ellipse filled with a diagonal weave pattern over a background color
HatchStylePlaid
Specifies a hatch that has the appearance of a plaid material.


Illustration of an ellipse filled with an open grid of opaque half-toned horizontal lines over opaque solid vertical lines, over a background color
HatchStyleDivot
Specifies a hatch that has the appearance of divots.


Illustration of an ellipse filled with alternating rows of greater-than and less-than symbols, over a background color
HatchStyleDottedGrid
Specifies horizontal and vertical dotted lines that cross at 90-degree angles.


Illustration of an ellipse filled with a grid of dotted lines over a background color
HatchStyleDottedDiamond
Specifies forward diagonal and backward diagonal dotted lines that cross at 90-degree angles.


Illustration of an ellipse filled with a grid of slanting dotted lines over a background color
HatchStyleShingle
Specifies a hatch that has the appearance of shingles laid in a forward diagonal direction.


Illustration of an ellipse filled with a diagonal shingle pattern over a background color
HatchStyleTrellis
Specifies a hatch that has the appearance of a trellis.


Illustration of an ellipse filled with a grid of wide, slanting lines over a background color
HatchStyleSphere
Specifies a hatch that has the appearance of a checkerboard of spheres.


Illustration of an ellipse filled with a checkerboard of spheres over a background color
HatchStyleSmallGrid
Specifies horizontal and vertical lines that cross at 90-degree angles and are spaced 50 percent closer together than HatchStyleCross.


Illustration of an ellipse filled with a small grid of lines over a background color
HatchStyleSmallCheckerBoard
Specifies a hatch that has the appearance of a checkerboard.


Illustration of an ellipse filled with a small checkerboard pattern over a background color
HatchStyleLargeCheckerBoard
Specifies a hatch that has the appearance of a checkerboard with squares that are twice the size of HatchStyleSmallCheckerBoard.


Illustration of an ellipse filled with a wide checkerboard pattern over a background color
HatchStyleOutlinedDiamond
Specifies forward diagonal and backward diagonal lines that cross at 90-degree angles but are not antialiased.


Illustration of an ellipse filled with a small grid of slanting lines over a background color
HatchStyleSolidDiamond
Specifies a hatch that has the appearance of a checkerboard placed diagonally.


Illustration of an ellipse filled with a large, diagonal checkerboard pattern over a background color
HatchStyleTotal
Specifies no hatch thereby allowing the brush to be transparent.
HatchStyleLargeGrid
Specifies HatchStyleCross.
HatchStyleMin
Specifies HatchStyleHorizonal.
HatchStyleMax
Specifies HatchStyleSolidDiamond.

Requirements

   
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header gdiplusenums.h (include Gdiplus.h)