FillRectangle and TextBrush

  • Thread starter Thread starter Yehia A.Salam
  • Start date Start date
Y

Yehia A.Salam

Hello,

I'm trying to fill a rectangle with a tiled image, the problem is that
Grpahics.FillRectangle (TextBrush,..,..,..,..) doesn't draw the tiled image
from the origin, so the result was this:

http://www.yehiaeg.com/test.gif

as you can see the right and bottom tile are not drawn from the tile origin.

Thanks
Yehia
 
hi,
Why don't you use the DrawBitmap method? There's an overload that allow you
to specify the rectangle of the image you want to use and the destination
rectangle.

I hope it helps

ThunderMusic
 
Back
Top