FillRectangle and TextBrush

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
 
T

ThunderMusic

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top