Board index » delphi » Saving TImage to File in 16 Colours??

Saving TImage to File in 16 Colours??

Is there a way to save a timage as a .BMP in 16 colors
only ? (or even a component addon that performs this
task)

I want to avoid writing (probably buggy) code myself
that writes out the bitmap header and bits manually,
as i don't have much experience with the Windows API.

Has anyone got any code snippets that the would kindly
share with me that will do the job??

Rich.

PS: I am using Delphi 1.

(please reply through EMAIL, as i don't have direct
 access to newsgroups very often.)

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet

 

Re:Saving TImage to File in 16 Colours??


Quote
> Is there a way to save a timage as a .BMP in 16 colors
> only ? (or even a component addon that performs this
> task)

Look for Tbitmap, copy the picture and use Tbitmap.SaveTofile to save the
image.

J.F. van Leur
VR-Software Engineer
falc...@dso.nl
http://users.dso.nl/falcore

Other Threads