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
Printable View
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
Use StretchBlt !!!
Use CreateCompatibleDC. To set the dimensions, select a bitmap with the appropiate size into it.
Let me elabourate on this a bit (well at least I think you meant this).Quote:
Originally posted by moinkhan
Use StretchBlt !!!
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.