Saving a jpg picture in VB 5.0 using code 
Author Message
 Saving a jpg picture in VB 5.0 using code

     I need to be able to save a picture from a VB 5.0 picture box without
the use of a commondialog box.  If I try saving the jpg picture using the
SavePicture method, it saves it as a bmp picture.  Is there a way using code
to save a picture from a picture box in a jpg format.

Thanks

Doc



Sun, 12 Mar 2000 03:00:00 GMT  
 Saving a jpg picture in VB 5.0 using code


23:28:55 -0400):

Quote:
>     I need to be able to save a picture from a VB 5.0 picture box without
>the use of a commondialog box.  If I try saving the jpg picture using the
>SavePicture method, it saves it as a bmp picture.  Is there a way using code
>to save a picture from a picture box in a jpg format.

AFAIK (although I am myself actually not using VB5) there is
no way to accomplish this without usage of external
components. I read about this problem for a couple of times
now but there was never a positive answer about it.

Although not positive, I hope this reply serves you.

Mathias Schiffer, Germany
--
ActiveX: http://www.comports.com/Schiffer
VB-FAQ:  http://home.sol.no/jansh/vb/default.htm



Mon, 13 Mar 2000 03:00:00 GMT  
 Saving a jpg picture in VB 5.0 using code


Schiffer) wrote (Thu, 25 Sep 1997 18:46:47 GMT):

Quote:
>AFAIK (although I am myself actually not using VB5) there is
>no way to accomplish this without usage of external
>components. I read about this problem for a couple of times
>now but there was never a positive answer about it.

Sorry for not mentioning what I already knew before:

You can get a freeware-component that allows you to display
a lot of graphic formats and even to save them as well.
Especially relating to JPG, a small workaround (provided in
the documentation) is neccessary, but nevertheless it is
obviously feasible (I am sorry I cannot report personal
experiences as I never used this tool):

http://einstein.ae.eng.ua.edu/nishita/Software/NViewLib1.1.5.Zip

I hope this is the current version. If not, shorten the path
accordingly and you'll find what you need.

Hope this helps.

Mathias Schiffer, Germany
--
ActiveX: http://www.comports.com/Schiffer
VB-FAQ:  http://home.sol.no/jansh/vb/default.htm



Fri, 17 Mar 2000 03:00:00 GMT  
 Saving a jpg picture in VB 5.0 using code

Mathias is right - although I have seen the source code for JPEG
compression in C posted in some of the Graphics groups, I wouldn't
want to do it in VB (even though I'm running a 266 PII I suspect it'd
be pretty slow)
I'd try to cadge a copy of Imageman or Imageknife OCX off somebody (no
sadly I don't own either) as they have pretty good file conversion
routines (as used by Visio for example).

Of course one might be able to do some OLE automation to Microsoft's
Image Editor or somtehing - don't know, i'll have to look into that
one...



Sat, 18 Mar 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Save a picture as jpg using VB6...

2. save a picture as jpg using Vb6...

3. Show JPG pictures with VB (5.0)

4. How do I load .jpg pictures into picture boxes in VB 4.0

5. VB5 Saving Picture as GIF or JPG - How?

6. Saving Picture Box Contents as a JPG or GIF

7. Saving JPG Pictures

8. saving a picture as gif or jpg

9. Saving JPG picture file

10. Save picture in jpg format

11. Save picture as jpg

12. Save .jpg picture through a query

 

 
Powered by phpBB® Forum Software