Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to read a complete row. Pin
CPallini20-Feb-09 0:26
mveCPallini20-Feb-09 0:26 
QuestionAbout uses of RDLC in VC++.net 2005 Pin
ddgalande20-Feb-09 0:01
ddgalande20-Feb-09 0:01 
QuestionSerialize a variable length structure Pin
hatemtaleb19-Feb-09 23:30
hatemtaleb19-Feb-09 23:30 
AnswerRe: Serialize a variable length structure Pin
«_Superman_»19-Feb-09 23:35
professional«_Superman_»19-Feb-09 23:35 
AnswerRe: Serialize a variable length structure Pin
Stuart Dootson20-Feb-09 2:34
professionalStuart Dootson20-Feb-09 2:34 
QuestionHelp For NtDsAPI.Lib Pin
vijith.squadz19-Feb-09 22:41
professionalvijith.squadz19-Feb-09 22:41 
AnswerRe: Help For NtDsAPI.Lib Pin
«_Superman_»19-Feb-09 23:39
professional«_Superman_»19-Feb-09 23:39 
QuestionGDI+ DrawImage() Speed Issue Pin
Redeye9219-Feb-09 22:23
Redeye9219-Feb-09 22:23 
I'm working on an application which uses a GDI+ bitmap and graphics object to double-buffer to the CView class (I don't use any Windows controls at all). This is all working very well, and I've certainly found GDI+ a little easier to work with than my previous experience working with GDI.

However, there are times when I need to be able to sustain refresh rates of around 50Hz on certain small portions of the screen. The drawing to the background bitmap isn't a big problem here, but the call to DrawImage() in OnPaint() is as it's taking a long time and chewing up a lot of processor time.

I've tried doing a GDI BitBlt() instead but while that function is fast, the creation of the HDC and HBITMAP and everything else needed isn't, and there's no speed advantage.

Has anybody got anybody got any ideas on how to speed up these calls to DrawImage()? I just don't believe that it should take up so much processor time to do so little - I know the GDI+ calls don't use hardware acceleration, but still...
AnswerRe: GDI+ DrawImage() Speed Issue Pin
frx9619-Feb-09 23:03
frx9619-Feb-09 23:03 
GeneralRe: GDI+ DrawImage() Speed Issue Pin
Redeye9219-Feb-09 23:11
Redeye9219-Feb-09 23:11 
AnswerRe: GDI+ DrawImage() Speed Issue Pin
KarstenK19-Feb-09 23:21
mveKarstenK19-Feb-09 23:21 
GeneralRe: GDI+ DrawImage() Speed Issue Pin
Redeye9219-Feb-09 23:29
Redeye9219-Feb-09 23:29 
GeneralRe: GDI+ DrawImage() Speed Issue Pin
KarstenK20-Feb-09 0:06
mveKarstenK20-Feb-09 0:06 
AnswerRe: GDI+ DrawImage() Speed Issue Pin
Nishad S19-Feb-09 23:55
Nishad S19-Feb-09 23:55 
GeneralRe: GDI+ DrawImage() Speed Issue Pin
Redeye9220-Feb-09 0:15
Redeye9220-Feb-09 0:15 
GeneralRe: GDI+ DrawImage() Speed Issue Pin
Nishad S20-Feb-09 0:29
Nishad S20-Feb-09 0:29 
GeneralRe: GDI+ DrawImage() Speed Issue Pin
Redeye9220-Feb-09 0:54
Redeye9220-Feb-09 0:54 
AnswerRe: GDI+ DrawImage() Speed Issue Pin
Stuart Dootson20-Feb-09 2:40
professionalStuart Dootson20-Feb-09 2:40 
GeneralThe Solution Pin
Redeye9220-Feb-09 3:29
Redeye9220-Feb-09 3:29 
GeneralRe: The Solution Pin
micahferguson28-Feb-09 9:53
micahferguson28-Feb-09 9:53 
GeneralRe: The Solution Pin
Redeye921-Mar-09 21:46
Redeye921-Mar-09 21:46 
QuestionAttempting to get 'Desktop PIDL' on Win2k, Win98 - Bizarre behavior Pin
ab4rum19-Feb-09 21:03
ab4rum19-Feb-09 21:03 
AnswerRe: Attempting to get 'Desktop PIDL' on Win2k, Win98 - Bizarre behavior Pin
Stuart Dootson20-Feb-09 2:59
professionalStuart Dootson20-Feb-09 2:59 
Questionhow to set sound output in left or right side of headphone? Pin
nekokan19-Feb-09 20:06
nekokan19-Feb-09 20:06 
AnswerRe: how to set sound output in left or right side of headphone? Pin
Nishad S20-Feb-09 0:00
Nishad S20-Feb-09 0:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.