Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change the palette of a Bitmap

Status
Not open for further replies.

dcelso

Programmer
Sep 29, 2005
11
ES
Hello, i have a TImage, and i have loaded an image of 256 colors. I have an array of 256 TColors, and i want put this as the new palette of my TBipmap of the TImage. But i don´t know how do it. The CreatePalette() API, Does run correctly.
 
The image is a windows bitmap.My program will be an palette editor for images in 256 colors, but i need know how i can change the palete of a TBitmap. Too i need know how access to the array of color dates, where sais what color of the palette must be painten in each point.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top