Hi all
Please help me for this---
In my project all drawing operations are done by using CDC object.
CDC stretchBlt , BitBlt like functions are used.
I want to copy contents of this on GDI+ Graphic object created using Bitmap.
I tried following code, but its not woking
Can anyone help me.......????????
sDC = GetDC();
Bitmap* scrollBitmap = new Bitmap(680,768,PixelFormat32bppPARGB);
Graphics gr(scrollBitmap);
HDC hdc = gr.GetHDC();
CDC *gDC = CDC::FromHandle(hdc);
sDC is original Dc on which all drawing is done.
i have created new CDC gDC- which is created by using Graphics object
I tried to use dtatement gDC->StretchBlt(destination gDC,-,-Source is SDC);
but this is not working, nothing on BITMAP....
Please help me what can i do for this
Loading
Kirtan PatelPosted Oct 16, 2009, 1:26 AM
so better to ask them they will guide you better then anyone else here :)
jingePosted Oct 16, 2009, 1:21 AM
Any way, if you found my post was helpful, don't forget to mark "Do you like this answer?".
Thanks.
sheetalw wattamwarPosted Oct 16, 2009, 12:30 AM
jingePosted Oct 15, 2009, 2:56 AM
sheetalw wattamwarPosted Oct 15, 2009, 2:16 AM
My drawing on CDC is in a loop, like some text is scrolling on screen.....
this is pixel by pixel drawing.....
when i use this temp bitmap for drawing becomes very very slow. and application gets crash randomly.
do u have any other solution
do you know why this gDC is not linked with graphics object. or Bitmap?
jingePosted Oct 15, 2009, 1:53 AM