Results 1 to 2 of 2

Thread: Problems with GradientLinearBrush

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2002
    Location
    http://www.vbforums.com
    Posts
    164

    Problems with GradientLinearBrush

    Hi all,

    I'm having a bit of problem with System.Drawing.Drawing2D.LinearGradientBrush. First I initialize a Rectangle object and then pass into the constructor of the brush together with the selected start and end colors. Next I use the same rectangle object to be filled by System.Drawing.Graphics.FillRectangle function. However, I get the following image.



    Notice the extra line at the top? The line will be gone if you change the height of the rectangle to certain values. I just couldn't figure this out.

    Please help.
    Attached Files Attached Files
    "If ignorance is bliss, that probably explain why I'm in a such a mess right now!!"

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Jan 2002
    Location
    http://www.vbforums.com
    Posts
    164

    Re: Problems with GradientLinearBrush

    Does anyone know? Please.
    "If ignorance is bliss, that probably explain why I'm in a such a mess right now!!"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width