
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