stretchblt

Why can't I stretchBlt a dc onto another dc?

Why can't the following code draw the content of graphics onto finalDC? It just draw black rectangle; Bitmap* bitmapCanvasCore = new Bitmap(width, height ,PixelFormat24bppRGB); xxxxxx // operation on bitmapCanvasCore... Graphics * canvasGraphics = new Graphics(bitmapCanvasCore); HDC tempdc = m_UnSelectedGraphics->GetHDC(); ::SetStretchB...

Problem shrinking with StretchBlt()

Hi. I have some code that paints my own rectangular buttons based on a source bitmap. Most of the time the destination buttons are bigger than my source bitmap image and StretchBlt works fine. However, when the destination is smaller than the source image, StretchBlt refuses to fill the entire destination area. I know StretchBlt isn't...

Memory corruption in System.Move due to changed 8087CW mode (png + stretchblt)

I have strange a memory corruption problem. After many hours debugging and trying I think I found something. For example: I do a simple string assignment: sTest := 'SET LOCK_TIMEOUT '; However, the result sometimes becomes: sTest = 'SET LOCK'#0'TIMEOUT ' So, the _ gets replaced by an 0 byte. I have seen this happening once (repr...

Beginner trying to use StretchBlt.

I have a Shockwave Flash Object in my form. I'm trying to use StretchBlt to magnify the object. Ideally I would like to push a button and have it replace the Flash Object on my form with the magnified version. Any help would be appreciated, even just documentation on how to use StrechBlt because I can't find anything on it. Thank you. ...