jpg image quality in vb5 picture control 
Author Message
 jpg image quality in vb5 picture control

I'm getting very poor display quality when I use the picture control to
display jpg images when I've setup win95 to be in 256 colors.  They look
great in high or true color.  It appears to be a pallette problem.  I've
tried the available settings on the form for pallettemode property on the
form but UseZOrder is the best but not very good.  Image quality looks
great with other image formats like bmp.

Any ideas?

Gary Bucher



Wed, 06 Oct 1999 03:00:00 GMT  
 jpg image quality in vb5 picture control

jpg images are in 16 million colors, you can't get around it.  If your
display is set up for 256 colors, you'll get crappy results viewing a
picture with 16 million colors in it since windows just tries to match the
closest color.  It's not the picture control.  Try opening the picture in
PSP or another viewing program.  It'll still look terrible with your
display set to 256 colors.  So what I'm saying is, is if you're viewing
.jpg's, your display must be set to at least 65,000 colors to have them
look good.  Good luck.



Thu, 07 Oct 1999 03:00:00 GMT  
 jpg image quality in vb5 picture control

I guess what I didn't mention was that if I open those images with other
programs, they look much better than they do with the picture control.  



Quote:
> jpg images are in 16 million colors, you can't get around it.  If your
> display is set up for 256 colors, you'll get crappy results viewing a
> picture with 16 million colors in it since windows just tries to match
the
> closest color.  It's not the picture control.  Try opening the picture in
> PSP or another viewing program.  It'll still look terrible with your
> display set to 256 colors.  So what I'm saying is, is if you're viewing
> .jpg's, your display must be set to at least 65,000 colors to have them
> look good.  Good luck.



Thu, 07 Oct 1999 03:00:00 GMT  
 jpg image quality in vb5 picture control

Quote:

> I guess what I didn't mention was that if I open those images with other
> programs, they look much better than they do with the picture control.

    Other programs, such as Paint Shop Pro, will convert the 24-bit
image
to an 8-bit image via a sophisticated (relatively speaking) graphics
algorithm. That's why it looks good on your 256 colour display. VB5 does
NOT automatically do this. That's why it looks bad on your picture
control.
Your solution? 1) Write your own algorithm -- good luck! 2) Buy a custom
control which does it for you -- if you have the money, no problem!
Maybe
others can suggest better solutions.

Cheerio,
--



Fri, 08 Oct 1999 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Picture or Image ctrl - image quality

2. How to place JPG pictures in the Image Control

3. Image control and pictures(jpg/gif)

4. Image Box Picture Quality

5. Copy gif and jpg file in picture control to picture control

6. Copy gif and jpg file in picture control to picture control

7. Copy gif and jpg file in picture control to picture control

8. Copy gif and jpg file in picture control to picture control

9. Resizing JPG files in Picture Control VB5

10. VB5 - image control - .jpg

11. Copy a picture from a Picture Control in a Image Control

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

 

 
Powered by phpBB® Forum Software