Click here to Skip to main content
16,004,901 members
Home / Discussions / Graphics
   

Graphics

 
AnswerRe: how to put a standard opengl in a windows form Pin
Jeff J Anderson6-May-07 22:32
Jeff J Anderson6-May-07 22:32 
Questionopen 2 window at the same time--->openGL???? Pin
Miss_ Petrovna1-May-07 8:50
Miss_ Petrovna1-May-07 8:50 
AnswerRe: open 2 window at the same time--->openGL???? Pin
El Corazon4-May-07 13:39
El Corazon4-May-07 13:39 
GeneralThank U..El Corazon Pin
Miss_ Petrovna5-May-07 5:57
Miss_ Petrovna5-May-07 5:57 
QuestionCapturing Network PC`s Desktop Pin
HassanKU1-May-07 5:55
HassanKU1-May-07 5:55 
AnswerRe: Capturing Network PC`s Desktop Pin
Mark Salsbery1-May-07 6:19
Mark Salsbery1-May-07 6:19 
GeneralRe: Capturing Network PC`s Desktop Pin
HassanKU1-May-07 7:04
HassanKU1-May-07 7:04 
GeneralRe: Capturing Network PC`s Desktop Pin
Mark Salsbery1-May-07 7:38
Mark Salsbery1-May-07 7:38 
In theory, you should be able to replace the fwrite() calls with socket send() calls.
In practice, you can improve your protocol by sending the headers only once. This information
only changes if you change the capture rect size or the screen resolution and/or bitdepth changes
so for each captured frame you only need to send the pixel data.

Also, I'm not sure about this calculation:

bmpInfo.bmiHeader.biSizeImage=bmpInfo.bmiHeader.biWidth*abs(bmpInfo.bmiHeader.biHeight)*(bmpInfo.bmiHeader.biBitCount+7)/8;

The pixel data is aligned to a DWORD (4-byte) boundary for each row so maybe something like this:

long lStride = ((bmpInfo.bmiHeader.biWidth * (long)bmpInfo.bmiHeader.biBitCount + 31L) & ~31L) / 8L;
bmpInfo.bmiHeader.biSizeImage = lStride * abs(bmpInfo.bmiHeader.biHeight);

Mark



"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

QuestionRe: Capturing Network PC`s Desktop Pin
David Crow1-May-07 6:50
David Crow1-May-07 6:50 
AnswerRe: Capturing Network PC`s Desktop Pin
HassanKU1-May-07 6:57
HassanKU1-May-07 6:57 
AnswerRe: Capturing Network PC`s Desktop Pin
HassanKU1-May-07 7:14
HassanKU1-May-07 7:14 
QuestionRe: Capturing Network PC`s Desktop Pin
David Crow1-May-07 7:22
David Crow1-May-07 7:22 
AnswerRe: Capturing Network PC`s Desktop Pin
HassanKU1-May-07 7:31
HassanKU1-May-07 7:31 
GeneralRe: Capturing Network PC`s Desktop Pin
David Crow1-May-07 7:46
David Crow1-May-07 7:46 
AnswerRe: Capturing Network PC`s Desktop Pin
HassanKU1-May-07 7:36
HassanKU1-May-07 7:36 
QuestionAnyone knw micromedia fireworks [modified] Pin
matjame29-Apr-07 20:59
matjame29-Apr-07 20:59 
QuestionHas anyone used libpng before? Pin
Adam_Malloy29-Apr-07 9:20
Adam_Malloy29-Apr-07 9:20 
AnswerRe: Has anyone used libpng before? Pin
El Corazon30-Apr-07 15:01
El Corazon30-Apr-07 15:01 
GeneralRe: Has anyone used libpng before? Pin
Adam_Malloy1-May-07 13:48
Adam_Malloy1-May-07 13:48 
Questionso expedite [modified] Pin
looole27-Apr-07 7:52
looole27-Apr-07 7:52 
Questionhelp Pin
Miss_ Petrovna27-Apr-07 7:28
Miss_ Petrovna27-Apr-07 7:28 
AnswerRe: help Pin
Christian Graus29-Apr-07 0:48
protectorChristian Graus29-Apr-07 0:48 
AnswerRe: Thanx, Christian Graus Pin
Miss_ Petrovna30-Apr-07 11:04
Miss_ Petrovna30-Apr-07 11:04 
GeneralRe: Thanx, Christian Graus Pin
David Crow1-May-07 6:52
David Crow1-May-07 6:52 
AnswerRe: Thanx, DavidCrow Pin
Miss_ Petrovna1-May-07 8:35
Miss_ Petrovna1-May-07 8:35 

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.