Picture box question 
Author Message
 Picture box question

Hi All,

        Something I've never understood about picture boxes...

  If I have a picture box on a form, and call it 'pic'.

  Then I load a picture into it:

       pic.Picture = LoadPicture("C:\gfx\DavidHasslehoff.bmp")

  And draw over the picture...

       pic.Line (100,100)-Step(300,300), VBRED, BF

  (which draws a red square on top of the picture).

  If I then save the picture box picture to a file:

       SavePicture pic.Picture, "C:\gfx\test.bmp"

  Loading this file back into a paint package just gives me the
  original picture (ie. without the red square).

  How can I save the new picture (ie. with the changes I've made)
  to a file?

  Thanks,

  Matt.



Sat, 31 Jan 2004 18:55:54 GMT  
 Picture box question


Matt,

Quote:
>  If I then save the picture box picture to a file:

>       SavePicture pic.Picture, "C:\gfx\test.bmp"

Save the image.
SavePicture pic.Image, "C:\gfx\test.bmp"

Regards, Frank.



Sat, 31 Jan 2004 18:58:30 GMT  
 Picture box question

Quote:
> Save the image.
> SavePicture pic.Image, "C:\gfx\test.bmp"

. . . but make sure that you set the Picture Box Autoredraw property to True
before you draw stuff into it.

Mike



Sat, 31 Jan 2004 20:22:49 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Picture box question (easy?)

2. Picture Box Question

3. picture box question

4. Image Control and Picture box question

5. Newbie Graphics (Picture box) question

6. More Picture Box Questions..

7. Mask used with transparent Picture Box question

8. Picture Box Question

9. Picture box question

10. image and picture box question

11. NON-Newbie Picture Box Question

12. NON-Newbie Picture Box Question

 

 
Powered by phpBB® Forum Software