![stretchblt copyimage stretchblt copyimage](https://content.any.run/tasks/864d482b-70ff-4c6c-9033-16093808e884/download/screens/ca2cda12-08d3-4bbd-a105-a5716f91f052/image.jpeg)
Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.) Filing date Publication date Priority to US10/066,167 priority Critical patent/US7142225B1/en Application filed by Microsoft Corp filed Critical Microsoft Corp Priority to US11/405,380 priority patent/US7239328B2/en Publication of US20060187241A1 publication Critical patent/US20060187241A1/en Application granted granted Critical Publication of US7239328B2 publication Critical patent/US7239328B2/en Assigned to MICROSOFT TECHNOLOGY LICENSING, LLC reassignment MICROSOFT TECHNOLOGY LICENSING, LLC ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS).
![stretchblt copyimage stretchblt copyimage](https://filedb.experts-exchange.com/incoming/2008/01_w05/2667/purify3.jpg)
Original Assignee Microsoft Corp Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.) Getzinger Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.) Expired - Lifetime Application number US11/405,380 Other versions US20060187241A1
#Stretchblt copyimage pdf#
Google Patents Lossless manipulation of media objectsÄownload PDF Info Publication number US7239328B2 US7239328B2 US11/405,380 US40538006A US7239328B2 US 7239328 B2 US7239328 B2 US 7239328B2 US 40538006 A US40538006 A US 40538006A US 7239328 B2 US7239328 B2 US 7239328B2 Authority US United States Prior art keywords image media object representation metadata user Prior art date Legal status (The legal status is an assumption and is not a legal conclusion. Google Patents US7239328B2 - Lossless manipulation of media objects I'm interested in the best, easiest and best-performing solution for this problem.US7239328B2 - Lossless manipulation of media objects
#Stretchblt copyimage code#
I'd be really grateful for some code examples.
![stretchblt copyimage stretchblt copyimage](https://content.any.run/tasks/0be1bf01-b63c-4a79-a251-da376d0e805a/download/screens/7e5de469-b6e8-4d13-89ec-ed96bbec95ef/image.jpeg)
I read that I can also use LoadImage with desired width and height parameter, so that the loaded image is already stretched, is this solution better? Should I use BitBlt/StretchBlt or CopyImage? If I create a precomputed bitmap, should I immediately unload the original bitmap to save on memory? Should I always stretch the bitmap when drawing to a DC on WM_ERASEBKGND, or should I create a compatible DC (or bitmap) with a precomputed stretched bitmap and then just BitBlt it to the target DC?
![stretchblt copyimage stretchblt copyimage](https://content.any.run/tasks/075aac9e-dd66-49f4-99f0-b7c522ac7c7f/download/screens/bb8514db-e005-4131-831d-18ea7de645e9/image.jpeg)
Is it okay to store a bitmap as HBITMAP or should I use DIBSection? Which one is better performance-wise, what's the memory footprint of both solutions? I was thinking of using StretchBlt instead of BitBlt when the bitmap needs to be stretched. I do it on WM_ERASEBKGND, I use the DC from wparam which is a mem DC. I load the bitmap with LoadImage and display it using BitBlt. The bitmap can be either stretched to span over the whole area or it will be displayed with original aspect ratio and empty space will be filled with a solid brush. I have a window on which I want to display a bitmap.
#Stretchblt copyimage windows#
I'm not exactly a windows programming expert ) so please excuse me if this question is trivial.