Click here to Skip to main content
14,486,111 members

Managed C++/CLI

 
QuestionGraphics::FromImage Pin
yiwpyos16-Aug-06 1:14
Memberyiwpyos16-Aug-06 1:14 
AnswerRe: Graphics::FromImage Pin
Christian Graus16-Aug-06 2:28
mveChristian Graus16-Aug-06 2:28 
GeneralRe: Graphics::FromImage Pin
yiwpyos16-Aug-06 22:39
Memberyiwpyos16-Aug-06 22:39 
Hi Christian,

Thanks for your reply. The truth is that my drawing function is a lot more complicated than the example i showed in my message. I am going through three "for" loops to display 3D dispersions on a map.

I chose to use a pictureBox because i thought it would be easier to handle the map displaying (zooming in/out, panning etc) by specifying it as the pictureBox->image, and then drawing the rest on top and following the same zooming, panning etc. Not sure it is the best way to go about it, just chose it.

To cut a long story short, apart from removing the flickering from my drawing i wanted to use double buffering to also improve the speed of my displays because these are displayed in real time (would like to anyway Smile | :) every 10 seconds). I did manage to implement the GDI+ double buffering i was straggling with (amazingly enough i was drawing in "bmpBuf" and was displaying "bmpBufr" >:E). However, although the flickering went away the displaying speed did not improve enough.

Do you think the .NET way of handling double buffering would do better (i read that the .NET way is more optimized http://www.windowsforms.net/articles/windowsformspainting.aspx). Any help how do make this work? This is what i tried

pictureBoxMap->SetStyle(ControlStyles::UserPaint, true);
pictureBoxMap->SetStyle(ControlStyles::AllPaintingInWmPaint, true);
pictureBoxMap->SetStyle(ControlStyles::DoubleBuffer, true);
pictureBoxMap->UpdateStyles();

Or any other suggestion how to improve the displaying speed would be much appreciated.

Thanks

george


george

GeneralRe: Graphics::FromImage Pin
Christian Graus16-Aug-06 22:42
mveChristian Graus16-Aug-06 22:42 
QuestionReceiving A Byte Array from dll? [modified] Pin
majidbhutta15-Aug-06 23:52
Membermajidbhutta15-Aug-06 23:52 
Questionpixil detection? Pin
Droze15-Aug-06 6:36
MemberDroze15-Aug-06 6:36 
AnswerRe: pixil detection? Pin
Jun Du17-Aug-06 5:15
MemberJun Du17-Aug-06 5:15 
GeneralRe: pixil detection? Pin
Droze17-Aug-06 10:56
MemberDroze17-Aug-06 10:56 
QuestionFax Routing, Please Help Pin
a_kiani15-Aug-06 2:16
Membera_kiani15-Aug-06 2:16 
AnswerRe: Fax Routing, Please Help Pin
Milton Karimbekallil15-Aug-06 18:22
MemberMilton Karimbekallil15-Aug-06 18:22 
QuestionHow can i use dll function in c++.net ? please help . Pin
nattafy15-Aug-06 1:39
Membernattafy15-Aug-06 1:39 
AnswerRe: How can i use dll function in c++.net ? please help . Pin
guestcat17-Aug-06 0:44
Memberguestcat17-Aug-06 0:44 
QuestionHow to stop USB Mass Storage Device window popping out Pin
mmhu11-Aug-06 4:35
Membermmhu11-Aug-06 4:35 
AnswerRe: How to stop USB Mass Storage Device window popping out Pin
Christian Graus14-Aug-06 18:26
mveChristian Graus14-Aug-06 18:26 
GeneralRe: How to stop USB Mass Storage Device window popping out Pin
mmhu15-Aug-06 11:07
Membermmhu15-Aug-06 11:07 
QuestionHow to use WndProc or WindowsProc function Pin
mmhu9-Aug-06 6:45
Membermmhu9-Aug-06 6:45 
AnswerRe: How to use WndProc or WindowsProc function Pin
Milton Karimbekallil10-Aug-06 22:57
MemberMilton Karimbekallil10-Aug-06 22:57 
GeneralRe: How to use WndProc or WindowsProc function Pin
mmhu11-Aug-06 4:24
Membermmhu11-Aug-06 4:24 
GeneralRe: How to use WndProc or WindowsProc function Pin
Milton Karimbekallil13-Aug-06 20:47
MemberMilton Karimbekallil13-Aug-06 20:47 
GeneralRe: How to use WndProc or WindowsProc function Pin
mmhu14-Aug-06 2:17
Membermmhu14-Aug-06 2:17 
GeneralRe: How to use WndProc or WindowsProc function Pin
Milton Karimbekallil15-Aug-06 18:00
MemberMilton Karimbekallil15-Aug-06 18:00 
GeneralRe: How to use WndProc or WindowsProc function Pin
mmhu17-Aug-06 11:05
Membermmhu17-Aug-06 11:05 
Question.NET slow graphics Pin
9ine9-Aug-06 1:03
Member9ine9-Aug-06 1:03 
AnswerRe: .NET slow graphics Pin
led mike9-Aug-06 6:00
Memberled mike9-Aug-06 6:00 
GeneralRe: .NET slow graphics [modified] Pin
9ine10-Aug-06 1:21
Member9ine10-Aug-06 1:21 

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.