I want to fill a rectangle with a linear gradient brush. With some rectangles I get some strange behavior. Example:
rectangle = new rectangle (20, 20, 20, 34); Linear gradients mode mode = linergridiendemod.value; Brush Brush = New LinerGrid Brush (Rect, Col. White, Color. Blue, Mode); E.Graphics.FillRectangle (Brush, Rect); Most rectangles work fine, but fill in the first pixel row with some (as above one) second color (blue in this case). View attached image:
Any ideas? Linear gradients mode = line graphs. / P>
Comments
Post a Comment