Click here to Skip to main content
15,917,176 members
Home / Discussions / Graphics
   

Graphics

 
Question[please help]why i cannot render my pic?thks! Pin
kaviniswell7-Nov-08 16:19
kaviniswell7-Nov-08 16:19 
AnswerRe: [please help]why i cannot render my pic?thks! Pin
Baltoro8-Nov-08 9:39
Baltoro8-Nov-08 9:39 
GeneralRe: [please help]why i cannot render my pic?thks! Pin
kaviniswell12-Nov-08 19:30
kaviniswell12-Nov-08 19:30 
AnswerRe: [please help]why i cannot render my pic?thks! Pin
Mark Salsbery9-Nov-08 6:55
Mark Salsbery9-Nov-08 6:55 
QuestionHow to create water ripple in directx? Pin
Md. Ali Naser Khan5-Nov-08 23:00
Md. Ali Naser Khan5-Nov-08 23:00 
AnswerRe: How to create water ripple in directx? Pin
El Corazon7-Nov-08 14:54
El Corazon7-Nov-08 14:54 
QuestionHi there :) Please help me Pin
viashivan5-Nov-08 5:02
viashivan5-Nov-08 5:02 
QuestionSave metafile as bitmap Pin
kildareflare4-Nov-08 23:29
kildareflare4-Nov-08 23:29 
Hello

I have a user control that has an image property which holds a metafile. This metafile is drawn to screen using DrawImage().

I wish to save the current image being displayed to disk as either a jpeg or a bitmap. I have written the code below which first creates a temporary bitmap and then draw the metafile to it.

I then attempt to save this bitmap to disk. However I always get the error "A generic error occured in GDI+."

Ive searched the messageboards and google but found nothing that fixs my problem - any ideas...?

Cheers


//Create a temporay bitmap and draw the metafile to it, then save it to disk
Bitmap saveImage = new Bitmap(m_canvasWidth, m_canvasHeight);
Graphics g = Graphics.FromImage(saveImage);
g.DrawImage(this.zoomAndScrollPictureBox.Image, new Point(0,0));
g.Dispose();


try
{
    saveImage.Save(savePath,System.Drawing.Imaging.ImageFormat.Bmp);
}
catch (Exception saveEx)
{
    MessageBox.Show(saveEx.Message);
}

AnswerRe: Save metafile as bitmap Pin
kildareflare5-Nov-08 23:02
kildareflare5-Nov-08 23:02 
QuestionStereo Cameras and OpenCV Pin
MikeMarq4-Nov-08 7:30
MikeMarq4-Nov-08 7:30 
AnswerRe: Stereo Cameras and OpenCV Pin
Tim Craig4-Nov-08 20:01
Tim Craig4-Nov-08 20:01 
GeneralRe: Stereo Cameras and OpenCV Pin
MikeMarq5-Nov-08 5:58
MikeMarq5-Nov-08 5:58 
GeneralRe: Stereo Cameras and OpenCV Pin
Tim Craig5-Nov-08 8:04
Tim Craig5-Nov-08 8:04 
GeneralRe: Stereo Cameras and OpenCV Pin
Tim Craig5-Nov-08 22:41
Tim Craig5-Nov-08 22:41 
GeneralRe: Stereo Cameras and OpenCV Pin
MikeMarq7-Nov-08 7:38
MikeMarq7-Nov-08 7:38 
GeneralRe: Stereo Cameras and OpenCV Pin
Tim Craig7-Nov-08 13:32
Tim Craig7-Nov-08 13:32 
GeneralRe: Stereo Cameras and OpenCV Pin
MikeMarq8-Nov-08 9:07
MikeMarq8-Nov-08 9:07 
GeneralRe: Stereo Cameras and OpenCV Pin
Tim Craig8-Nov-08 14:50
Tim Craig8-Nov-08 14:50 
QuestionAnother DirectShow Problem Pin
KaldaP3-Nov-08 9:35
KaldaP3-Nov-08 9:35 
Questionorigami Pin
migraine2-Nov-08 3:06
migraine2-Nov-08 3:06 
AnswerRe: origami Pin
Tim Craig2-Nov-08 16:58
Tim Craig2-Nov-08 16:58 
AnswerRe: origami Pin
Smithers-Jones5-Nov-08 0:26
Smithers-Jones5-Nov-08 0:26 
QuestionTransparent rectangle in GDI Pin
Heptagonal1-Nov-08 13:17
Heptagonal1-Nov-08 13:17 
AnswerRe: Transparent rectangle in GDI Pin
Perspx1-Nov-08 13:54
Perspx1-Nov-08 13:54 
GeneralRe: Transparent rectangle in GDI Pin
Heptagonal1-Nov-08 21:58
Heptagonal1-Nov-08 21: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.