Click here to Skip to main content
15,899,754 members
Home / Discussions / Graphics
   

Graphics

 
GeneralRe: Having trouble with transformations [Christian Graus please save me] Pin
Luc Pattyn13-Jan-09 18:08
sitebuilderLuc Pattyn13-Jan-09 18:08 
GeneralRe: Having trouble with transformations [Christian Graus please save me] Pin
gantww29-Jan-09 11:14
gantww29-Jan-09 11:14 
GeneralRe: Having trouble with transformations [Christian Graus please save me] Pin
Luc Pattyn29-Jan-09 11:30
sitebuilderLuc Pattyn29-Jan-09 11:30 
QuestionOpenGL Bitmap fonts not being displayed on some hardware Pin
McDave12-Jan-09 13:16
McDave12-Jan-09 13:16 
AnswerRe: OpenGL Bitmap fonts not being displayed on some hardware Pin
McDave13-Jan-09 0:13
McDave13-Jan-09 0:13 
QuestionProblem in GDI+ Pin
vinay_K12-Jan-09 2:04
vinay_K12-Jan-09 2:04 
AnswerRe: Problem in GDI+ Pin
Henry Minute12-Jan-09 2:16
Henry Minute12-Jan-09 2:16 
QuestionGDI+ refresh image (C++) Pin
Valdyr11-Jan-09 9:14
Valdyr11-Jan-09 9:14 
Regards
I have a problem. I cant get to refresh an image the second time it should be displayed. I am using gdi+ function Graphics::DrawImage. The image displays correctly but the second time (in a loop) the function is called the image isn't refreshed. Instead the image stays (on screen) as the first time it was drawn. I know that the image (bitmap) is changed between the two calls for DrawImage function because, when I do something with the window the image is drawn to, (like resizing it, minimizing etc.), the image is refreshed, but if I do nothing the image stays as it is the first time DrawImage draws it. I am changing image's pixels in another function named Render(), that is called before DrawImage.
Is there another function that draws image on screen, or is there a clear screen function. (I tried with graphics.Clear(color) function but after it the screen is filled with the color 'color' and again it it stays like that indefinitely)
The bitmap is created in memory and isn't read from the disk (although it's the same thing once it is in memory).
Here is part of the code which is called continously (in a loop):

void Prikaz(HDC hdc){
    Graphics graphics(hdc);
    Render();
    Bitmap FrameBuffer((BITMAPINFO*) &((*BMPSlika).InfoHeader), (*BMPSlika).PixelData);
    graphics.DrawImage(&FrameBuffer,0,0);
}


BMPSlika is a pointer to the bitmap image structure.
AnswerRe: GDI+ refresh image (C++) Pin
Tim Craig11-Jan-09 17:03
Tim Craig11-Jan-09 17:03 
GeneralRe: GDI+ refresh image (C++) [modified] Pin
Valdyr11-Jan-09 23:25
Valdyr11-Jan-09 23:25 
GeneralRe: GDI+ refresh image (C++) Pin
Tim Craig12-Jan-09 9:53
Tim Craig12-Jan-09 9:53 
GeneralRe: GDI+ refresh image (C++) Pin
Valdyr12-Jan-09 13:46
Valdyr12-Jan-09 13:46 
QuestionRe: GDI+ refresh image (C++) [modified] Pin
Valdyr13-Jan-09 1:46
Valdyr13-Jan-09 1:46 
AnswerRe: GDI+ refresh image (C++) Pin
Mark Salsbery13-Jan-09 6:38
Mark Salsbery13-Jan-09 6:38 
GeneralRe: GDI+ refresh image (C++) Pin
Valdyr13-Jan-09 9:07
Valdyr13-Jan-09 9:07 
GeneralRe: GDI+ refresh image (C++) Pin
Mark Salsbery13-Jan-09 9:27
Mark Salsbery13-Jan-09 9:27 
GeneralRe: GDI+ refresh image (C++) Pin
Valdyr13-Jan-09 10:06
Valdyr13-Jan-09 10:06 
GeneralRe: GDI+ refresh image (C++) Pin
Mark Salsbery13-Jan-09 18:53
Mark Salsbery13-Jan-09 18:53 
GeneralRe: GDI+ refresh image (C++) Pin
Valdyr14-Jan-09 8:48
Valdyr14-Jan-09 8:48 
GeneralRe: GDI+ refresh image (C++) Pin
Mark Salsbery14-Jan-09 8:59
Mark Salsbery14-Jan-09 8:59 
GeneralRe: GDI+ refresh image (C++) Pin
Valdyr14-Jan-09 9:09
Valdyr14-Jan-09 9:09 
GeneralRe: GDI+ refresh image (C++) Pin
Tim Craig14-Jan-09 8:39
Tim Craig14-Jan-09 8:39 
GeneralRe: GDI+ refresh image (C++) Pin
Valdyr14-Jan-09 8:58
Valdyr14-Jan-09 8:58 
AnswerRe: GDI+ refresh image (C++) Pin
Valdyr14-Jan-09 9:07
Valdyr14-Jan-09 9:07 
Question[OpenGL] multithread drawing Pin
King Tran10-Jan-09 15:58
King Tran10-Jan-09 15:58 

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.