Click here to Skip to main content
15,888,521 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: The Destructor can't cleanup the memory? Pin
Nibu babu thomas27-Feb-06 18:47
Nibu babu thomas27-Feb-06 18:47 
GeneralRe: The Destructor can't cleanup the memory? Pin
signbit27-Feb-06 18:51
signbit27-Feb-06 18:51 
GeneralRe: The Destructor can't cleanup the memory? Pin
Nick_Kisialiou27-Feb-06 19:27
Nick_Kisialiou27-Feb-06 19:27 
GeneralRe: The Destructor can't cleanup the memory? Pin
Johann Gerell27-Feb-06 20:28
Johann Gerell27-Feb-06 20:28 
GeneralRe: The Destructor can't cleanup the memory? Pin
Stephen Hewitt27-Feb-06 21:30
Stephen Hewitt27-Feb-06 21:30 
GeneralRe: The Destructor can't cleanup the memory? Pin
signbit27-Feb-06 22:09
signbit27-Feb-06 22:09 
GeneralRe: The Destructor can't cleanup the memory? Pin
Stephen Hewitt27-Feb-06 23:23
Stephen Hewitt27-Feb-06 23:23 
QuestionThe Image is being displayed upside down :( Pin
signbit27-Feb-06 18:02
signbit27-Feb-06 18:02 
Hello,

I am creating a Bitmap with the following code:

image = gcnew Bitmap(FreeImage_GetWidth(document->currentImage),
				FreeImage_GetHeight(document->currentImage), FreeImage_GetLine(document->currentImage),
				System::Drawing::Imaging::PixelFormat::Format24bppRgb,
				(IntPtr)FreeImage_GetScanLine(document->currentImage, 0));


Image information (Height, Width, ScanLine0 and etc) is obtained from FreeImage (the open source library I am using for image handling).

When the image is displayed, it displays upside down, can any one tell me what might be the problem, how can I make it correct?

I'll be grateful.

- A programmer's national anthem; "AAAAAHHHHH!!!!"
AnswerRe: The Image is being displayed upside down :( Pin
Christian Graus27-Feb-06 18:14
protectorChristian Graus27-Feb-06 18:14 
GeneralRe: The Image is being displayed upside down :( Pin
signbit27-Feb-06 18:19
signbit27-Feb-06 18:19 
GeneralRe: The Image is being displayed upside down :( Pin
Christian Graus27-Feb-06 18:21
protectorChristian Graus27-Feb-06 18:21 
GeneralRe: The Image is being displayed upside down :( Pin
signbit27-Feb-06 18:32
signbit27-Feb-06 18:32 
GeneralRe: The Image is being displayed upside down :( Pin
Christian Graus27-Feb-06 18:44
protectorChristian Graus27-Feb-06 18:44 
GeneralRe: The Image is being displayed upside down :( Pin
signbit27-Feb-06 18:55
signbit27-Feb-06 18:55 
GeneralRe: The Image is being displayed upside down :( Pin
signbit27-Feb-06 18:25
signbit27-Feb-06 18:25 
AnswerRe: The Image is being displayed upside down :( Pin
normanS27-Feb-06 18:25
normanS27-Feb-06 18:25 
GeneralRe: The Image is being displayed upside down :( Pin
signbit27-Feb-06 18:33
signbit27-Feb-06 18:33 
GeneralRe: The Image is being displayed upside down :( Pin
mbue27-Feb-06 21:50
mbue27-Feb-06 21:50 
GeneralRe: The Image is being displayed upside down :( Pin
signbit27-Feb-06 22:14
signbit27-Feb-06 22:14 
GeneralRe: The Image is being displayed upside down :( Pin
mbue27-Feb-06 22:53
mbue27-Feb-06 22:53 
GeneralRe: The Image is being displayed upside down :( Pin
normanS27-Feb-06 22:59
normanS27-Feb-06 22:59 
GeneralRe: The Image is being displayed upside down :( Pin
signbit28-Feb-06 19:02
signbit28-Feb-06 19:02 
QuestionCDocument Class Pin
Subramaniam s.V.27-Feb-06 17:47
Subramaniam s.V.27-Feb-06 17:47 
AnswerRe: CDocument Class Pin
Ryan Binns27-Feb-06 17:54
Ryan Binns27-Feb-06 17:54 
GeneralRe: CDocument Class Pin
Subramaniam s.V.27-Feb-06 18:04
Subramaniam s.V.27-Feb-06 18:04 

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.