Custom 256-color palettes - how?? 
Author Message
 Custom 256-color palettes - how??

This has probably been asked before but . . . .

   I have an app written in VB6 that displays images in a
PictureBox.  I want the images to look their best even on
in a 256 color environment.

So . . . I've tried setting PaletteMode to vbPaletteModeCustom
and then setting the Palette to the Picture object.  It has
no effect!   I suspect the issue is that the Picture object
is an image with way more that 256 colors and the doc does
say that to create a custom palette in this way it has to
be a 256 color image.

Is there a way to get VB to do what I want?

Or . . .

Can someone point me to some code that will look at an image
and create an "optimized" 256 color palette?  My app does only
display one image at a time so a custom palette per image is
ok.

--
   LSC (aka Larry Chapman)
   (970) 898-3117



Sun, 02 Sep 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Custom palettes in 256-color mode

2. Using 256 color Palettes in High/True Color

3. choose a color in a 256 color palette ?

4. Change Screen Color Palette from 256 to hi-color in VB

5. Bitmap Color Palette editing-VB4 16 bit 256 color

6. Coloring a control from a 256-Color palette

7. Coloring a control from a 256-Color palette

8. color palette not accessible in 256+ color settings

9. Bitmap Color Palette editing-VB4 16 bit 256 color

10. Custom 24-bit colors in 256-color mode

11. 256 Color Palette

12. halftone palette/256 colors

 

 
Powered by phpBB® Forum Software