
How to change True color pixel to 256 color pixel, @Thanks
Quote:
> I capture my screen and get a true color image, How to change it to 256
> color image.
> : Change true color pixel to 256 color pixel.
It's tricky (And slow) since you need to come up with the optimal palette
for the image then map all the colours down to that but you'll find an
article on that over on Http://www.vbaccelerator.com/
If you don't mind using a standard palette (Like PCAnywhere does -
Incidentally, it's best to keep follow-up posts in the same thread as it
reduces clutter..) is to simply use a pre-defined palette such as the
standard Windows one and select that into a DC. Then BitBlt() to that DC
and it will perform very basic (But bad quality) colour mapping to that
palette.
Hope this helps,
Mike
-- EDais --
- Microsoft Visual Basic MVP -
WWW: Http://EDais.earlsoft.co.uk/