Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Reply
FillRectangle Image Tiling issue
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Giles Papworth
14y
5.2k
1
Reply
I am tiling an image on the far right hand side of my windows form. I am tiling on the Y axis and it all works fine except for the fact that the image seems to have been shifted to the left. I will use an illustration below.
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
Attachment:
PROBLEMS.zip
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
im
A generic error occurred in GDI+.