
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