Click here to Skip to main content
16,010,553 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWinsock Programming problem! Pin
Alex H 19838-Jul-04 8:47
Alex H 19838-Jul-04 8:47 
GeneralRe: Winsock Programming problem! Pin
palbano8-Jul-04 10:07
palbano8-Jul-04 10:07 
GeneralOpenGL problem Pin
Philemon Arthur8-Jul-04 8:30
Philemon Arthur8-Jul-04 8:30 
GeneralRe: OpenGL problem Pin
Orhun Birsoy8-Jul-04 12:26
Orhun Birsoy8-Jul-04 12:26 
GeneralRe: OpenGL problem Pin
Philemon Arthur8-Jul-04 12:44
Philemon Arthur8-Jul-04 12:44 
GeneralRe: OpenGL problem Pin
Orhun Birsoy9-Jul-04 6:50
Orhun Birsoy9-Jul-04 6:50 
GeneralRe: OpenGL problem Pin
Philemon Arthur9-Jul-04 7:14
Philemon Arthur9-Jul-04 7:14 
General[GDI+]Runtime of LockBits() and how to achieve throughput of 48mb/sec Pin
redmop8-Jul-04 6:36
redmop8-Jul-04 6:36 
Hi,

some questions regarding GDI+ and general who to write code that demands high throughput.

1) I load an image with the image constructor of gdi. This takes about 20ms for an 720*565 RGB tiff image (1.6mb). This sounds eventually reseonable to me since random access of hdd should be about 8ms - 12ms. Question: could it be faster? Is 20ms to long? (I think about processing 30images per second and I want to do image processing. consequently i've just 10ms left for that. ) How can I process this huge amount of data faster (1.6mb*30 = 48mb/sec)? Since i load single images i dont know if its somehow possible to have a stream of data ... any comments?

2) I need to access the bitmap data of the image. Therefore i use the the LockBits method to receive the BitmapData. What I found very strange is that this method needs huge amount of time (20 - 100ms). This sounds very unreasonable to me since the data should already be in memory and all i want is a nice pointer to the data. The code I use is:

m_pBmSource->LockBits(&Rect(0,0,m_pBmSource->GetWidth(),m_pBmSource->GetHeight()),ImageLockModeRead | ImageLockModeWrite,PixelFormat24bppRGB,&m_pBmDataSource);

where m_pBmSource is the pointer to a Bitmap.

if you need more information to be able to help please let me know.

Many thanks
micheal

QuestionCenter text vertically in CEdit? Pin
DanYELL8-Jul-04 6:30
DanYELL8-Jul-04 6:30 
AnswerRe: Center text vertically in CEdit? Pin
David Crow8-Jul-04 9:32
David Crow8-Jul-04 9:32 
GeneralMouse Action Pin
Ken Mazaika8-Jul-04 5:52
Ken Mazaika8-Jul-04 5:52 
GeneralRe: Mouse Action Pin
Maximilien8-Jul-04 5:54
Maximilien8-Jul-04 5:54 
GeneralRe: Mouse Action Pin
Ken Mazaika8-Jul-04 6:03
Ken Mazaika8-Jul-04 6:03 
GeneralRe: Mouse Action Pin
Ravi Bhavnani8-Jul-04 12:11
professionalRavi Bhavnani8-Jul-04 12:11 
GeneralWindow always visible Pin
jlopezpenalba8-Jul-04 5:11
jlopezpenalba8-Jul-04 5:11 
GeneralRe: Window always visible Pin
valikac8-Jul-04 5:24
valikac8-Jul-04 5:24 
GeneralInsert Dialog (from another program) Pin
sweep1238-Jul-04 5:08
sweep1238-Jul-04 5:08 
GeneralRe: Insert Dialog (from another program) Pin
valikac8-Jul-04 5:26
valikac8-Jul-04 5:26 
GeneralRe: Insert Dialog (from another program) Pin
sweep1238-Jul-04 6:35
sweep1238-Jul-04 6:35 
GeneralRe: Insert Dialog (from another program) Pin
Jaime Stuardo8-Jul-04 8:19
Jaime Stuardo8-Jul-04 8:19 
GeneralRe: Insert Dialog (from another program) Pin
Grahamfff8-Jul-04 9:28
Grahamfff8-Jul-04 9:28 
GeneralRe: Insert Dialog (from another program) Pin
Jaime Stuardo8-Jul-04 11:04
Jaime Stuardo8-Jul-04 11:04 
GeneralRe: Insert Dialog (from another program) Pin
Gary R. Wheeler10-Jul-04 3:12
Gary R. Wheeler10-Jul-04 3:12 
GeneralRe: Insert Dialog (from another program) Pin
sweep12311-Jul-04 21:22
sweep12311-Jul-04 21:22 
Generalinstead of FileChannel in C++ Pin
sinea8-Jul-04 4:31
sinea8-Jul-04 4:31 

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.