Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
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
HatchStyleHorizontalSpecifies horizontal lines. 👁 Illustration of an ellipse filled with widely spaced horizontal lines over a background color |
HatchStyleVerticalSpecifies vertical lines. 👁 Illustration of an ellipse filled with widely spaced vertical lines over a background color |
HatchStyleForwardDiagonalSpecifies diagonal lines that slant to the right from top points to bottom points. The lines are antialiased. 👁 Illustration of an ellipse filled with right-slanting lines over a background color. |
HatchStyleBackwardDiagonalSpecifies diagonal lines that slant to the left from top points to bottom points. The lines are antialiased. 👁 Illustration of an ellipse filled with left-slanting lines over a background color. |
HatchStyleCrossSpecifies 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 |
HatchStyleDiagonalCrossSpecifies 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 |
HatchStyle05PercentSpecifies 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 |
HatchStyle10PercentSpecifies 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 |
HatchStyle20PercentSpecifies 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 |
HatchStyle25PercentSpecifies 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 |
HatchStyle30PercentSpecifies a 30-percent hatch. The ratio of foreground color to background color is 30:100. 👁 Illustration of an ellipse filled with a 30 percent dense, diagonal dot grid over a background color. |
HatchStyle40PercentSpecifies 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 |
HatchStyle50PercentSpecifies 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 |
HatchStyle60PercentSpecifies 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 |
HatchStyle70PercentSpecifies a 70-percent hatch. The ratio of foreground color to background color is 70:100. 👁 Illustration of an ellipse filled with a 70 percent dense, diagonal dot grid over a background color. |
HatchStyle75PercentSpecifies 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 |
HatchStyle80PercentSpecifies 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 |
HatchStyle90PercentSpecifies 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 |
HatchStyleLightDownwardDiagonalSpecifies 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 light left-slanting lines over a background color. |
HatchStyleLightUpwardDiagonalSpecifies 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 |
HatchStyleDarkDownwardDiagonalSpecifies 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 |
HatchStyleDarkUpwardDiagonalSpecifies 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 |
HatchStyleWideDownwardDiagonalSpecifies 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 |
HatchStyleWideUpwardDiagonalSpecifies 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 |
HatchStyleLightVerticalSpecifies vertical lines that are spaced 50 percent closer together than HatchStyleVertical. 👁 Illustration of an ellipse filled with vertical lines over a background color |
HatchStyleLightHorizontalSpecifies horizontal lines that are spaced 50 percent closer together than HatchStyleHorizontal. 👁 Illustration of an ellipse filled with horizontal lines over a background color |
HatchStyleNarrowVerticalSpecifies 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 |
HatchStyleNarrowHorizontalSpecifies 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 |
HatchStyleDarkVerticalSpecifies 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 |
HatchStyleDarkHorizontalSpecifies 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 |
HatchStyleDashedDownwardDiagonalSpecifies horizontal lines that are composed of forward diagonals. 👁 Illustration of an ellipse filled with rows of slash characters over a background color |
HatchStyleDashedUpwardDiagonalSpecifies horizontal lines that are composed of backward diagonals. 👁 Illustration of an ellipse filled with rows of backslash characters over a background color |
HatchStyleDashedHorizontalSpecifies horizontal dashed lines. 👁 Illustration of an ellipse filled with dashed horizontal lines over a background color |
HatchStyleDashedVerticalSpecifies vertical dashed lines. 👁 Illustration of an ellipse filled with dashed vertical lines over a background color |
HatchStyleSmallConfettiSpecifies 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 |
HatchStyleLargeConfettiSpecifies 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 |
HatchStyleZigZagSpecifies horizontal lines of zigzags. 👁 Illustration of an ellipse filled with horizontal zig-zag lines over a background color |
HatchStyleWaveSpecifies horizontal lines of tildes. 👁 Illustration of an ellipse filled with lines of tilde characters over a background color |
HatchStyleDiagonalBrickSpecifies 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 |
HatchStyleHorizontalBrickSpecifies 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 |
HatchStyleWeaveSpecifies a hatch that has the appearance of a woven material. 👁 Illustration of an ellipse filled with a diagonal weave pattern over a background color |
HatchStylePlaidSpecifies 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 |
HatchStyleDivotSpecifies 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 |
HatchStyleDottedGridSpecifies 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 |
HatchStyleDottedDiamondSpecifies 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 |
HatchStyleShingleSpecifies 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 |
HatchStyleTrellisSpecifies 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 |
HatchStyleSphereSpecifies 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 |
HatchStyleSmallGridSpecifies 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 |
HatchStyleSmallCheckerBoardSpecifies a hatch that has the appearance of a checkerboard. 👁 Illustration of an ellipse filled with a small checkerboard pattern over a background color |
HatchStyleLargeCheckerBoardSpecifies 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 |
HatchStyleOutlinedDiamondSpecifies 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 |
HatchStyleSolidDiamondSpecifies 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 |
HatchStyleTotalSpecifies no hatch thereby allowing the brush to be transparent. |
HatchStyleLargeGridSpecifies HatchStyleCross. |
HatchStyleMinSpecifies HatchStyleHorizonal. |
HatchStyleMaxSpecifies HatchStyleSolidDiamond. |
Requirements
| Requirement | Value |
|---|---|
| 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) |
Feedback
Was this page helpful?
