1 Replies - 5613 Views - Last Post: 13 May 2012 - 10:16 PM

#1 JohnBoyMan  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 27
  • Joined: 24-February 12

windows form draw only portion of an image

Posted 13 May 2012 - 09:55 PM

Hello all. I have come to the conclusion that when i try to use images for backgrounds in my windows forms, these images have to be exactly the same size as the form or else when i move the form it will cause the form to shake. The problem with doing this is when i maximize the form the texture image i used as a background then will tile and repeat over and over to match the size of the form. What i want to do , is to use a very large and complete texture or image for background, but only load in part of it and that part it the forms width and height. Then when i resize the form to be larger, i can once again draw the image, but an increased ammount of the image from file . So ill only draw part of the image, and thats the part i need and nothing more. I have struggled for days on how this would work. please help thanks for any tips.

Is This A Good Question/Topic? 0
  • +

Replies To: windows form draw only portion of an image

#2 JohnBoyMan  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 27
  • Joined: 24-February 12

Re: windows form draw only portion of an image

Posted 13 May 2012 - 10:16 PM

I founds somthing interesting, its from code project http://www.codeproje...cessing-using-C

It shows one how to crop. I might create somthing that will crop my image and only draw the needed portion only if the form is smaller than the total picture
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1