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. |
HatchStyleVertical Specifies vertical lines. |
HatchStyleForwardDiagonal Specifies diagonal lines that slant to the right from top points to bottom points. The lines are antialiased. |
HatchStyleBackwardDiagonal Specifies diagonal lines that slant to the left from top points to bottom points. The lines are antialiased. |
HatchStyleCross Specifies horizontal and vertical lines that cross at 90-degree angles. |
HatchStyleDiagonalCross Specifies forward diagonal and backward diagonal lines that cross at 90-degree angles. The lines are antialiased. |
HatchStyle05Percent Specifies a 5-percent hatch. The ratio of foreground color to background color is 5:100. |
HatchStyle10Percent Specifies a 10-percent hatch. The ratio of foreground color to background color is 10:100. |
HatchStyle20Percent Specifies a 20-percent hatch. The ratio of foreground color to background color is 20:100. |
HatchStyle25Percent Specifies a 25-percent hatch. The ratio of foreground color to background color is 25:100. |
HatchStyle30Percent Specifies a 30-percent hatch. The ratio of foreground color to background color is 30:100. |
HatchStyle40Percent Specifies a 40-percent hatch. The ratio of foreground color to background color is 40:100. |
HatchStyle50Percent Specifies a 50-percent hatch. The ratio of foreground color to background color is 50:100. |
HatchStyle60Percent Specifies a 60-percent hatch. The ratio of foreground color to background color is 60:100. |
HatchStyle70Percent Specifies a 70-percent hatch. The ratio of foreground color to background color is 70:100. |
HatchStyle75Percent Specifies a 75-percent hatch. The ratio of foreground color to background color is 75:100. |
HatchStyle80Percent Specifies an 80-percent hatch. The ratio of foreground color to background color is 80:100. |
HatchStyle90Percent Specifies a 90-percent hatch. The ratio of foreground color to background color is 90:100. |
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. |
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. |
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. |
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. |
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. |
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. |
HatchStyleLightVertical Specifies vertical lines that are spaced 50 percent closer together than HatchStyleVertical. |
HatchStyleLightHorizontal Specifies horizontal lines that are spaced 50 percent closer together than HatchStyleHorizontal. |
HatchStyleNarrowVertical Specifies vertical lines that are spaced 75 percent closer together than HatchStyleVertical (or 25 percent closer together than HatchStyleLightVertical). |
HatchStyleNarrowHorizontal Specifies horizontal lines that are spaced 75 percent closer together than HatchStyleHorizontal ( or 25 percent closer together than HatchStyleLightHorizontal). |
HatchStyleDarkVertical Specifies vertical lines that are spaced 50 percent closer together than HatchStyleVerical and are twice the width of HatchStyleVertical. |
HatchStyleDarkHorizontal Specifies horizontal lines that are spaced 50 percent closer together than HatchStyleHorizontal and are twice the width of HatchStyleHorizontal. |
HatchStyleDashedDownwardDiagonal Specifies horizontal lines that are composed of forward diagonals. |
HatchStyleDashedUpwardDiagonal Specifies horizontal lines that are composed of backward diagonals. |
HatchStyleDashedHorizontal Specifies horizontal dashed lines. |
HatchStyleDashedVertical Specifies vertical dashed lines. |
HatchStyleSmallConfetti Specifies a hatch that has the appearance of confetti. |
HatchStyleLargeConfetti Specifies a hatch that has the appearance of confetti composed of larger pieces than HatchStyleSmallConfetti. |
HatchStyleZigZag Specifies horizontal lines of zigzags. |
HatchStyleWave Specifies horizontal lines of tildes. |
HatchStyleDiagonalBrick Specifies a hatch that has the appearance of a wall of bricks laid in a backward diagonal direction. |
HatchStyleHorizontalBrick Specifies a hatch that has the appearance of a wall of bricks laid horizontally. |
HatchStyleWeave Specifies a hatch that has the appearance of a woven material. |
HatchStylePlaid Specifies a hatch that has the appearance of a plaid material. |
HatchStyleDivot Specifies a hatch that has the appearance of divots. |
HatchStyleDottedGrid Specifies horizontal and vertical dotted lines that cross at 90-degree angles. |
HatchStyleDottedDiamond Specifies forward diagonal and backward diagonal dotted lines that cross at 90-degree angles. |
HatchStyleShingle Specifies a hatch that has the appearance of shingles laid in a forward diagonal direction. |
HatchStyleTrellis Specifies a hatch that has the appearance of a trellis. |
HatchStyleSphere Specifies a hatch that has the appearance of a checkerboard of spheres. |
HatchStyleSmallGrid Specifies horizontal and vertical lines that cross at 90-degree angles and are spaced 50 percent closer together than HatchStyleCross. |
HatchStyleSmallCheckerBoard Specifies a hatch that has the appearance of a checkerboard. |
HatchStyleLargeCheckerBoard Specifies a hatch that has the appearance of a checkerboard with squares that are twice the size of HatchStyleSmallCheckerBoard. |
HatchStyleOutlinedDiamond Specifies forward diagonal and backward diagonal lines that cross at 90-degree angles but are not antialiased. |
HatchStyleSolidDiamond Specifies a hatch that has the appearance of a checkerboard placed diagonally. |
HatchStyleTotal Specifies no hatch thereby allowing the brush to be transparent. |
HatchStyleLargeGrid Specifies HatchStyleCross. |
HatchStyleMin Specifies HatchStyleHorizonal. |
HatchStyleMax Specifies 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) |