The image should look like this:
------|
but when drawn it looks like this
--|----
it has shifted the image along the x axis and tiled it on that one as well? I am filling the rectangle as such:
t = new TextureBrush(rightImage);
g.FillRectangle(t, new Rectangle(this.Width - right.Width, topRight.Height, right.Width, this.Height - botRight.Height));
i simply want the image to only tile on the y axis?
I have attached a screenshot in the zip file.
Cheers
Giles PapworthPosted Apr 30, 2010, 4:49 AM
ImageAttributes imgatt = new ImageAttributes();
imgatt.SetWrapMode(System.Drawing.Drawing2D.WrapMode.Tile);
g.DrawImage(rightImage, new Rectangle(this.Width - right.Width, topRight.Height, right.Width, this.Height - botRight.Height), 0, 0, right.Width, right.Height, GraphicsUnit.Pixel, imgatt);