Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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. ![]() |
HatchStyleVerticalSpecifies vertical lines. ![]() |
HatchStyleForwardDiagonalSpecifies diagonal lines that slant to the right from top points to bottom points. The lines are antialiased. ![]() |
HatchStyleBackwardDiagonalSpecifies diagonal lines that slant to the left from top points to bottom points. The lines are antialiased. ![]() |
HatchStyleCrossSpecifies horizontal and vertical lines that cross at 90-degree angles. ![]() |
HatchStyleDiagonalCrossSpecifies forward diagonal and backward diagonal lines that cross at 90-degree angles. The lines are antialiased. ![]() |
HatchStyle05PercentSpecifies a 5-percent hatch. The ratio of foreground color to background color is 5:100. ![]() |
HatchStyle10PercentSpecifies a 10-percent hatch. The ratio of foreground color to background color is 10:100. ![]() |
HatchStyle20PercentSpecifies a 20-percent hatch. The ratio of foreground color to background color is 20:100. ![]() |
HatchStyle25PercentSpecifies a 25-percent hatch. The ratio of foreground color to background color is 25:100. ![]() |
HatchStyle30PercentSpecifies a 30-percent hatch. The ratio of foreground color to background color is 30:100. ![]() |
HatchStyle40PercentSpecifies a 40-percent hatch. The ratio of foreground color to background color is 40:100. ![]() |
HatchStyle50PercentSpecifies a 50-percent hatch. The ratio of foreground color to background color is 50:100. ![]() |
HatchStyle60PercentSpecifies a 60-percent hatch. The ratio of foreground color to background color is 60:100. ![]() |
HatchStyle70PercentSpecifies a 70-percent hatch. The ratio of foreground color to background color is 70:100. ![]() |
HatchStyle75PercentSpecifies a 75-percent hatch. The ratio of foreground color to background color is 75:100. ![]() |
HatchStyle80PercentSpecifies an 80-percent hatch. The ratio of foreground color to background color is 80:100. ![]() |
HatchStyle90PercentSpecifies a 90-percent hatch. The ratio of foreground color to background color is 90:100. ![]() |
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. ![]() |
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. ![]() |
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. ![]() |
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. ![]() |
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. ![]() |
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. ![]() |
HatchStyleLightVerticalSpecifies vertical lines that are spaced 50 percent closer together than HatchStyleVertical. ![]() |
HatchStyleLightHorizontalSpecifies horizontal lines that are spaced 50 percent closer together than HatchStyleHorizontal. ![]() |
HatchStyleNarrowVerticalSpecifies vertical lines that are spaced 75 percent closer together than HatchStyleVertical (or 25 percent closer together than HatchStyleLightVertical). ![]() |
HatchStyleNarrowHorizontalSpecifies horizontal lines that are spaced 75 percent closer together than HatchStyleHorizontal ( or 25 percent closer together than HatchStyleLightHorizontal). ![]() |
HatchStyleDarkVerticalSpecifies vertical lines that are spaced 50 percent closer together than HatchStyleVerical and are twice the width of HatchStyleVertical. ![]() |
HatchStyleDarkHorizontalSpecifies horizontal lines that are spaced 50 percent closer together than HatchStyleHorizontal and are twice the width of HatchStyleHorizontal. ![]() |
HatchStyleDashedDownwardDiagonalSpecifies horizontal lines that are composed of forward diagonals. ![]() |
HatchStyleDashedUpwardDiagonalSpecifies horizontal lines that are composed of backward diagonals. ![]() |
HatchStyleDashedHorizontalSpecifies horizontal dashed lines. ![]() |
HatchStyleDashedVerticalSpecifies vertical dashed lines. ![]() |
HatchStyleSmallConfettiSpecifies a hatch that has the appearance of confetti. ![]() |
HatchStyleLargeConfettiSpecifies a hatch that has the appearance of confetti composed of larger pieces than HatchStyleSmallConfetti. ![]() |
HatchStyleZigZagSpecifies horizontal lines of zigzags. ![]() |
HatchStyleWaveSpecifies horizontal lines of tildes. ![]() |
HatchStyleDiagonalBrickSpecifies a hatch that has the appearance of a wall of bricks laid in a backward diagonal direction. ![]() |
HatchStyleHorizontalBrickSpecifies a hatch that has the appearance of a wall of bricks laid horizontally. ![]() |
HatchStyleWeaveSpecifies a hatch that has the appearance of a woven material. ![]() |
HatchStylePlaidSpecifies a hatch that has the appearance of a plaid material. ![]() |
HatchStyleDivotSpecifies a hatch that has the appearance of divots. ![]() |
HatchStyleDottedGridSpecifies horizontal and vertical dotted lines that cross at 90-degree angles. ![]() |
HatchStyleDottedDiamondSpecifies forward diagonal and backward diagonal dotted lines that cross at 90-degree angles. ![]() |
HatchStyleShingleSpecifies a hatch that has the appearance of shingles laid in a forward diagonal direction. ![]() |
HatchStyleTrellisSpecifies a hatch that has the appearance of a trellis. ![]() |
HatchStyleSphereSpecifies a hatch that has the appearance of a checkerboard of spheres. ![]() |
HatchStyleSmallGridSpecifies horizontal and vertical lines that cross at 90-degree angles and are spaced 50 percent closer together than HatchStyleCross. ![]() |
HatchStyleSmallCheckerBoardSpecifies a hatch that has the appearance of a checkerboard. ![]() |
HatchStyleLargeCheckerBoardSpecifies a hatch that has the appearance of a checkerboard with squares that are twice the size of HatchStyleSmallCheckerBoard. ![]() |
HatchStyleOutlinedDiamondSpecifies forward diagonal and backward diagonal lines that cross at 90-degree angles but are not antialiased. ![]() |
HatchStyleSolidDiamondSpecifies a hatch that has the appearance of a checkerboard placed diagonally. ![]() |
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) |




















































