Drawing a Shaded Rectangle by using GradientFill

Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Detail

Drawing a Shaded Rectangle by using GradientFill

This Delphi source code shows how the GradientFill function can be used to add smooth shading to a triangle or rectangle.
http://www.delphi-central.com/tutorials/DelphiGradientFill.aspx
  • Total Hits: 14351

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating

  •  

  • Total Votes: 144 votes

  • Category: Delphi/Image Processing

  • Submitted on: 2008-04-16 06:37:02

  • Submitted By: Shekhar

  • Set as Favorite

Description:

This Delphi source code shows how the GradientFill function can be used to add smooth shading to a triangle or rectangle. For a triangle call the GradientFill function with the three triangle endpoints. GDI will linearly interpolate and fill the triangle.

To add smooth shading to a rectangle, call GradientFill with the upper-left and lower-right coordinates of the rectangle.    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 38.19%  55
 Two starsTwo star  Vote LeftVote MiddleVote Right 10.42%  15
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 11.81%  17
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 11.11%  16
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 28.47%  41

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.





Advertisements
Advertisements