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 PatelRank #292 · 8.6K reputationPosted Oct 15, 2009, 9:26 PM EDT
so better to ask them they will guide you better then anyone else here :)
jingeRank #2,527 · 554 reputationPosted Oct 14, 2009, 9:53 PM EDT
sheetalw wattamwar15 reputationPosted Oct 14, 2009, 10:16 PM EDT
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?
jingeRank #2,527 · 554 reputationPosted Oct 14, 2009, 10:56 PM EDT
sheetalw wattamwar15 reputationPosted Oct 15, 2009, 8:30 PM EDT
jingeRank #2,527 · 554 reputationPosted Oct 15, 2009, 9:21 PM EDT
Any way, if you found my post was helpful, don't forget to mark "Do you like this answer?".
Thanks.