wardrobeandrew Posted July 3, 2003 Posted July 3, 2003 two things can i draw lines and circle and so on in vb.net like i can in vb6 if so how secondly how do i save images from picture boxes as gifs, bitmaps, png,icons ans so on ive tried ptbMain.Image.Save(imagestream, System.Drawing.Imaging.ImageFormat.Gif) but i just get GDI+ generic errors when i try to save as gif, tiff, jpeg, bmp, wmf, emf, or png or vaule cannot be null, parameter name encoder, i get this one when i try to save as icons NB in my code sample image stream is a filestream with the parameters (savedialog.filename, filemode create) if you can help me and/or tell me where i'm going wrong i would be grateful cheers Quote
*Experts* mutant Posted July 3, 2003 *Experts* Posted July 3, 2003 You have to use GDI to draw shapes. This works fine for saving images: PictureBox1.Image.Save("imagepathname.gif", Imaging.ImageFormat.Gif) Quote
wardrobeandrew Posted July 3, 2003 Author Posted July 3, 2003 ive tired that but i still get errors maybe im coding wrong Quote
*Experts* mutant Posted July 4, 2003 *Experts* Posted July 4, 2003 What errors do you get when you do what I showed you? Quote
wardrobeandrew Posted July 4, 2003 Author Posted July 4, 2003 i got it working using your technique it was an error in my filestream cheers for your help Quote
wardrobeandrew Posted July 4, 2003 Author Posted July 4, 2003 by any chance would you know how i would go about saving as an icon ? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.