home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,135 of 10,840   
   Carl to J French   
   Re: Saving Altered Bitmap   
   02 Jan 05 15:40:00   
   
   From: dodger@enter.net   
      
       Thank you for your help, but I've tried this and it doesn't work.  I'm   
   using a picturebox as a canvas on which to draw.  I'm loading a blank   
   bitmap, test.bmp, and then drawing on the picturebox (e.g..   
   frm_crysalis.picmain.Circle (-0.25, 0), 1).  I'm trying to add a save as   
   routine to save the modified image, Here is the simple test code that I've   
   written to do this, but it doesn't work (oh yeah, my Autoredraw property is   
   set to true).   
      
   Private Sub mnu_save_Click()   
       CommonDialog1.Filter = "Pictures (*.bmp)|*.bmp"   
       CommonDialog1.ShowSave   
       SavePicture Image, "d:\my documents\vb6\TEST.BMP"   
   End Sub   
      
   Could the problem be that I'm drawing on the picturebox, not the blank   
   bitmap test.bmp?  I've tried not loading the blank bitmap, but then the   
   image saved is blank as well.  This one really has me baffled.  Any ideas   
   will be greatly appreciated.   
      
      
      
   "J French"  wrote in message   
   news:41d7dcb0.62160076@news.btclick.com...   
   > On Sat, 01 Jan 2005 18:51:20 GMT, "Carl"  wrote:   
   >   
   > >    In the application I'm writing, I'm modifying a windows bitmap using   
   the   
   > >circle and line methods.  Once the changes have been made, I would like   
   to   
   > >save the bitmap with the changes.  My problem is, after saving the bitmap   
   I   
   > >find that the changes haven't been saved with the new file.  Any help   
   with   
   > >what I'm doing wrong? -Carl   
   >   
   > Set the AutoRedraw property to True   
   > Save the Picbox.Image   
   >   
   > eg:   
   >   
   > SavePicture Picture1.Image, "C:\TEST.BMP"   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca