Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListCtrl window disappears?! Pin
Tomasz Sowinski9-Nov-01 3:07
Tomasz Sowinski9-Nov-01 3:07 
GeneralRe: CListCtrl window disappears?! Pin
Tommy H D Svensson9-Nov-01 5:58
Tommy H D Svensson9-Nov-01 5:58 
GeneralRe: CListCtrl window disappears?! Pin
Tommy H D Svensson9-Nov-01 1:23
Tommy H D Svensson9-Nov-01 1:23 
GeneralRemoving Menu from Mainframe Pin
[James Pullicino]8-Nov-01 21:51
[James Pullicino]8-Nov-01 21:51 
GeneralRe: Removing Menu from Mainframe Pin
Tomasz Sowinski8-Nov-01 23:13
Tomasz Sowinski8-Nov-01 23:13 
GeneralGDI+ Pin
AJ1238-Nov-01 21:37
AJ1238-Nov-01 21:37 
GeneralRe: GDI+ Pin
Christian Graus8-Nov-01 22:04
protectorChristian Graus8-Nov-01 22:04 
GeneralRe: GDI+ Pin
AJ1239-Nov-01 3:07
AJ1239-Nov-01 3:07 
Thanks, did see your reply , though it didn't really help me much, i tend to find message that are posted a few pages back tend to get ignored . Had a look at your tutorial to.


I recognise i have to use the Graphics class, i wrote the following code to try and manipulate an image from a file, as a start basis.



//Source Image
Image* image = new Image(L"c:\\test.bmp");

Graphics* imageGraphics = Graphics::FromImage(image);

Pen* blackpen= new Pen(Color(0, 0, 0, 0), 10);


Point point1(0, 0);
Point point2(100, 300);

// Draw A line.
imageGraphics->DrawLine(blackpen, point1, point2);


imageGraphics->Flush(FlushIntentionSync);


// Get the CLSID of the JPG
if (GetEncoderClsid(L"image/jpeg", &encoderClsid) == -1)
MessageBox("No suitable encoder");


MessageBox("About to save");
stat = image->Save(L"c:\\conv.jpg", &encoderClsid, NULL);
MessageBox("Done");

if(stat != Ok)
{
//Have A Failure Log
char err[255];
wsprintf(err,"%d", stat);

MessageBox("Failure: stat = ");
}


delete blackpen;
delete imageGraphics;
delete image;




GdiplusShutdown(gdiplusToken);






Thanks Again, must start and try and hekp out on the forum myself!

Rich

GeneralRe: GDI+ Pin
AJ12310-Nov-01 4:28
AJ12310-Nov-01 4:28 
GeneralSource Code of a Simple Calculator Pin
8-Nov-01 18:51
suss8-Nov-01 18:51 
GeneralRe: Source Code of a Simple Calculator Pin
Jon Sagara8-Nov-01 21:06
Jon Sagara8-Nov-01 21:06 
GeneralRe: Source Code of a Simple Calculator Pin
Nish Nishant8-Nov-01 21:23
sitebuilderNish Nishant8-Nov-01 21:23 
GeneralRe: Source Code of a Simple Calculator Pin
Christian Graus8-Nov-01 22:06
protectorChristian Graus8-Nov-01 22:06 
GeneralRe: Source Code of a Simple Calculator Pin
ShirtLifter8-Nov-01 22:14
ShirtLifter8-Nov-01 22:14 
GeneralRe: Source Code of a Simple Calculator Pin
Christian Graus8-Nov-01 22:21
protectorChristian Graus8-Nov-01 22:21 
GeneralRe: Source Code of a Simple Calculator Pin
ShirtLifter8-Nov-01 22:25
ShirtLifter8-Nov-01 22:25 
GeneralRe: Source Code of a Simple Calculator Pin
Christian Graus8-Nov-01 22:49
protectorChristian Graus8-Nov-01 22:49 
GeneralRe: Source Code of a Simple Calculator Pin
8-Nov-01 23:06
suss8-Nov-01 23:06 
GeneralRe: Source Code of a Simple Calculator Pin
Nish Nishant8-Nov-01 23:45
sitebuilderNish Nishant8-Nov-01 23:45 
GeneralRe: Source Code of a Simple Calculator Pin
Christian Graus8-Nov-01 22:24
protectorChristian Graus8-Nov-01 22:24 
GeneralRe: Source Code of a Simple Calculator Pin
ShirtLifter8-Nov-01 22:26
ShirtLifter8-Nov-01 22:26 
GeneralRe: Source Code of a Simple Calculator Pin
Michael P Butler8-Nov-01 22:46
Michael P Butler8-Nov-01 22:46 
GeneralRe: Source Code of a Simple Calculator Pin
ShirtLifter8-Nov-01 22:28
ShirtLifter8-Nov-01 22:28 
GeneralRe: Source Code of a Simple Calculator Pin
Christian Graus8-Nov-01 22:48
protectorChristian Graus8-Nov-01 22:48 
GeneralRe: Source Code of a Simple Calculator Pin
8-Nov-01 23:08
suss8-Nov-01 23:08 

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.