• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 322
  • Last Modified:

set palette after canvas-lineto

After I Image1->Canvas->LineTo(100,100),
the palette is truecolor,
I set the palette to 16 colors,
and savetofile(a.bmp)
,I dump the a.bmp,
but the file is not 16 colors.
How can I setup the palette after
I had drawed something?
1 Solution
You should change the image's
pixelformat property to acquire
what you need.
mathematicsAuthor Commented:
Good! I will test.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now