|
-
Nov 25th, 2006, 08:41 AM
#4
Thread Starter
Addicted Member
Re: Problem with picturebox hdc
 Originally Posted by bushmobile
try putting: after you Blt the picture
That doesn't work well either, plus I'd prefer to make this code so I don't have to worry about the control that are over the picbox, and so make it more portable.
 Originally Posted by jcis
If you use PaintPicture you won't have this problem
VB Code:
Picture1.PaintPicture YourPic, 0, 0, Picture1.ScaleWidth, Picture1.ScaleHeight
Uhm, right now what I do is creating directly a DC, and using StretchBlt with picture1.hdc. Your method would imply using a Image and its LoadPicture method, wouldn't it? or do you mean some other thing? I'll give a try to this.
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
|