|
-
Feb 19th, 2009, 09:36 PM
#1
Re: Picturebox (loadpicture with an offset)
Create an invisible picturebox, then load your image into it. Then you can use the PaintPicture, to simply paint the content partially, to the pic1 control.
Or, you can place an another picturebox, inside pic1, so you load the picture into the inner picbox, that is you can resize, then move the the negative position, so it will simply show you the content you are after.
-
Feb 19th, 2009, 09:54 PM
#2
Thread Starter
Hyperactive Member
Re: Picturebox (loadpicture with an offset)
Your paintpicture idea was the best as I didn't want to use additional pictureboxes on the form (even invisible) and I didn't need it 'aesthetic' at all neither.
Also, and I forgot to mention, the offset needed is static. I don't need to evalute the picture and move it accordingly.
That did it:
Code:
pic1.PaintPicture pic1.Picture, 0, -30
Thank you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|