GDI + Learning Record (8): Shadow painter-hatchbrush

Source: Internet
Author: User
// Shadow painter var G: tgpgraphics; HB: tgphatchbrush; begin G: = tgpgraphics. create (canvas. handle); HB: = tgphatchbrush. create (hatchstylehorizontal, aclred, aclyellow); {parameter 1 is the shadow style; parameter 2 is the foreground color; parameter 3 is the background color; parameter 3 is optional; default value: Black} G. fillellipse (Hb, 11, 11,222,111); HB. free; G. free; end;

  

Paint Brush shadow style sheet:

Delphi Microsoft Description
Hatchstylebackwarddiagonal Backwarddiagonal A diagonal line from top right to bottom left.
Hatchstylecross Cross Specifies the horizontal and vertical lines of the intersection.
Hatchstyledarkdownwarddiagonal Darkdownwarddiagonal Specifies the diagonal line that is tilted from the vertex to the right. The angle between the two sides is 50% less than that of forwarddiagonal, and the width is twice. This shadow pattern is not de-toothed.
Hatchstyledarkhorizontal Darkhorizontal The angle between the two sides of the specified horizontal line is 50% less than that of horizontal and the width is twice that of horizontal.
Hatchstyledarkupwarddiagonal Darkupwarddiagonal Specifies the diagonal line that is tilted from the vertices to the left. The angle between the two sides is 50% less than that of backwarddiagonal, and the width is twice the width, but these straight lines are not eliminated by sawtooth.
Hatchstyledarkvertical Darkvertical The angle between two sides of the specified vertical line is 50% less than that of vertical and the width is twice.
Hatchstyledasheddownwarddiagonal Dasheddownwarddiagonal Specifies the diagonal line of the dotted line, which is skewed from the vertices to the right.
Hatchstyledashedhorizontal Dashedhorizontal Specify the dotted line and horizontal line.
Hatchstyledashedupwarddiagonal Dashedupwarddiagonal Specifies the diagonal line of the dotted line, which is skewed from the vertices to the left.
Hatchstyledashedvertical Dashedvertical Specify the vertical line of the dotted line.
Hatchstylediagonalbrick Diagonalbrick Specifies a shadow with a layered brick appearance, which is tilted from the vertices to the left.
Hatchstylediagonalcross Diagonalcross Diagonal pattern.
Hatchstyledivot Divot Specifies the shadow with the appearance of the turf layer.
Hatchstyledotteddiamond Dotteddiamond Specifies the forward and reverse diagonal lines that cross each other. Each diagonal line consists of points.
Hatchstyledottedgrid Dottedgrid Specifies the horizontal and vertical lines that cross each other. Each line is composed of points.
Hatchstyleforwarddiagonal Forwarddiagonal A diagonal line from top left to bottom right.
Hatchstylehorizontal Horizontal Horizontal line pattern.
Hatchstylehorizontalbrick Horizontalbrick Specifies the shadow with the horizontal layered brick appearance.
Hatchstylelargecheckerboard Largecheckerboard Specifies a shadow with a checkerboard appearance. The size of the checkerboard is twice that of the smallcheckerboard.
Hatchstylelargeconfetti Largeconfetti Specifies a shadow with the appearance of confetti, and it consists of a larger part than smallconfetti.
Hatchstylelargegrid Largegrid Specifies the shadow style cross.
Hatchstylelightdownwarddiagonal Lightdownwarddiagonal
Hatchstylelighthorizontal Lighthorizontal Specifies a horizontal line with an angle of 50% less than that of horizontal.
Hatchstylelightupwarddiagonal Lightupwarddiagonal Specifies the diagonal line that is tilted from the vertices to the left. The angle between the two sides is 50% less than that of backwarddiagonal, but these straight lines are not eliminated by sawtooth.
Hatchstylelightvertical Lightvertical The angle between two sides of the specified vertical line is 50% less than that of vertical.
Hatchstylemax Max Specifies the shadow style soliddiamond.
Hatchstylemin Min Specifies the shadow style horizontal.
Hatchstylenarrowhorizontal Narrowhorizontal The angle between the two sides of the specified horizontal line is 75% less than the shadow style horizontal (or 25% less than lighthorizontal ).
Hatchstylenarrowvertical Narrowvertical The angle between two sides of the specified vertical line is 75% less than that of the Shadow style vertical (or 25% less than that of lightvertical ).
Hatchstyleoutlineddiamond Outlineddiamond Specifies the forward and reverse diagonal lines that cross each other, but these diagonal lines do not eliminate the Sawtooth.
Hatchstylepercent05 Percent05 Specify the 5% shadow. The ratio of foreground color to background color is.
Hatchstylepercent10 Percent10 Specify the 10% shadow. The ratio of the foreground color to the background color is.
Hatchstylepercent20 Percent20 Specify the 20% shadow. The ratio of foreground color to background color is.
Hatchstylepercent25 Percent25 Specify the 25% shadow. The ratio of the foreground color to the background color is 25:100.
Hatchstylepercent30 Percent30 Specify the 30% shadow. The ratio of foreground color to background color is 30: 100.
Hatchstylepercent40 Percent40 Specify the 40% shadow. The ratio of foreground color to background color is 40: 100.
Hatchstylepercent50 Percent50 Specify the 50% shadow. The ratio of foreground color to background color is 50: 100.
Hatchstylepercent60 Percent60 Specify the 60% shadow. The ratio of foreground color to background color is 60: 100.
Hatchstylepercent70 Percent70 Specify the 70% shadow. The ratio of foreground color to background color is 70: 100.
Hatchstylepercent75 Percent75 Specify the 75% shadow. The ratio of foreground color to background color is 75: 100.
Hatchstylepercent80 Percent80 Specify the 80% shadow. The ratio of foreground color to background color is 80: 100.
Hatchstylepercent90 Percent90 Specify the 90% shadow. The ratio of foreground color to background color is 90: 100.
Hatchstyleplaid Plaid Specifies the shadow with the appearance of the lattice.
Hatchstyleshingle Shingle Specifies a shadow with a diagonal layered pebbles appearance, which is skewed from the vertices to the right.
Hatchstylesmallcheckerboard Smallcheckerboard Specifies the shadow with the checker appearance.
Hatchstylesmallconfetti Smallconfetti Specifies the shadow with the appearance of confetti.
Hatchstylesmallgrid Smallgrid Specifies the horizontal and vertical lines that cross each other. The angle between the two sides is 50% less than that of the Shadow style cross.
Hatchstylesoliddiamond Soliddiamond Specifies the shadow with the appearance of the Board placed on a diagonal corner.
Hatchstylesphere Sphere Specifies the shadow with the appearance of the sphere placed adjacent to each other.
Hatchstyletrellis Trellis Specifies a shadow with a grid appearance.
Hatchstylevertical Vertical Vertical line pattern.
Hatchstylewave Wave Specify the font size "~" A horizontal line.
Hatchstyleweave Weave Specifies a shadow with a fabric appearance.
Hatchstylewidedownwarddiagonal Widedownwarddiagonal Specifies the diagonal line that is tilted from the vertices to the right. The spacing is the same as that of the Shadow style forwarddiagonal, and the width is three times, but they are not eliminated by the Sawtooth.
Hatchstylewideupwarddiagonal Wideupwarddiagonal Specifies the diagonal line that is tilted from the vertices to the left. The spacing is the same as that of the Shadow style backwarddiagonal, and the width is three times, but they are not removed from the Sawtooth.
Hatchstylezigzag Zigzag A horizontal line consisting of a Z-shaped string.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.