load a Jpeg image into a picturebox or image control 
Author Message
 load a Jpeg image into a picturebox or image control
As per subject, I'm wanting to load a JPEG into either of these controls or
an equivalent.
I know that you can do this, but then if you save the image, it is saved as
a BMP which is not good. I have tried using an image type conversion
control, which would then convert my BMP file back to JPEG, but there is too
much loss of quality over the original JPEG file.

Any feedback or advice would be appreciated!

Feel free to e-mail me

Thanks

Harry



Fri, 19 Dec 2003 00:30:54 GMT  
 load a Jpeg image into a picturebox or image control
You can save a bitmap as a Jpeg using the freely available Intel library.
The version that I currently use is IJL11.DLL (which is version 1.1) but
they are now up to version 1.5 (although I haven't personally tried that
yet). You can get the DLL plus documentation plus VB example code at:

http://developer.intel.com/software/products/perflib/ijl/index.htm

The Intel library allows you to save your picture at any Jpeg quality
setting you want (from 0 for the lowest quality to 100 for the highest
quality). Obviously, the higher the quality setting then the less file size
compression you will get. My own personal opinion is that settings of about
90 to 95 give excellent image quality with acceptable file size compression
of about 10:1 and 7:1 respectively, and is approximately the setting used by
digital cameras on their highest Jpeg quality setting. A setting of 100, of
course, gives the best results, but it gives a compression ratio of only
about 3:1 or 4:1.

In fact, it may well be that the Image Type Conversion control that you are
currently using (you haven't said what it is) also allows you to specify
compression or quality ratios and you may be using a low quality setting in
your code.

Mike


Quote:
> As per subject, I'm wanting to load a JPEG into either of these controls
or
> an equivalent.
> I know that you can do this, but then if you save the image, it is saved
as
> a BMP which is not good. I have tried using an image type conversion
> control, which would then convert my BMP file back to JPEG, but there is
too
> much loss of quality over the original JPEG file.

> Any feedback or advice would be appreciated!

> Feel free to e-mail me

> Thanks

> Harry



Fri, 19 Dec 2003 01:25:56 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Loaded image in Image or PictureBox control

2. Error loading GIF or JPG image in PictureBox or Image controls

3. How to load GIF and JPEG files from Resource to Image or PictureBox

4. Loading an image from a webserver into a PictureBox or Image

5. Help!! Loading PictureBox FromStream and PictureBox.Image.Save

6. Color Count of image in an image (or picturebox) control

7. loading image or picturebox control from access 3.0 db w/ DAO

8. Cancel loading of large picture into PictureBox or Image control

9. loading image into picturebox control

10. Loading Images from Access into Image Control

11. load gif jpeg image types in MemoryDC

12. Quickest way to load jpeg images

 

 
Powered by phpBB® Forum Software