• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 336
  • 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.
Why?
How can I setup the palette after
I had drawed something?
0
mathematics
Asked:
mathematics
1 Solution
 
sunsetyangCommented:
You should change the image's
pixelformat property to acquire
what you need.
0
 
mathematicsAuthor Commented:
Good! I will test.
0
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

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

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