Skip to content

BitmapPalette equivalent in ImageSharp #1365

Answered by JimBobSquarePants
Veriara asked this question in Q&A
Discussion options

You must be logged in to vote

Normally we would recommend users utilize the color cutting algorithms in our Wu and Octree quantizers to create the palette to use when saving images in indexed pixels formats.

However we do have a PaletteQuantizer class with which you can assign a custom palette then pass that quantizer instance to IImageEncoder instances allowing encoding in indexed format (currently BMP, PNG, GIF).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Veriara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants