|
-
Aug 4th, 2002, 02:24 PM
#1
[RESOLVED] Resizing DC
i tried searching but i couldn't find anything.
i've been using pictureboxes as back buffers up until now, but one screen is getting to big to hold in a picture box so i need to create a DC to any size i want...how do i do this?
thanks
-
Aug 4th, 2002, 02:47 PM
#2
Frenzied Member
-
Aug 5th, 2002, 01:17 AM
#3
Software Eng.
Use CreateCompatibleDC. To set the dimensions, select a bitmap with the appropiate size into it.
-
Aug 5th, 2002, 01:21 AM
#4
Software Eng.
Originally posted by moinkhan
Use StretchBlt !!!
Let me elabourate on this a bit (well at least I think you meant this).
StretchBlt can be used to resize the actual picture e.g. shorten the dimensions by a lot. This can elminate the need to create additional DC's and save memory.
On the negative side though, you'll lose small portions of the picture.
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
|