TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
sheetalw wattamwar
NA
16
0
copy contents of CDC to gdi + graphics object
Oct 15 2009 1:30 AM
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
Reply
Answers (
6
)
GDI+ rendering differences between XP and Server 2008 when saving WMF as PNG
Form re-paint GDI+