Reputation: 21
I have many PNG files with transparency and these PNG fiels seem to be indexed. I would like to :
Do you have an example to do that ?
Upvotes: 2
Views: 1934
Reputation: 2562
This question is related to other PNG resize questions but...
AFAIK, You can't resize an indexed image and keep the original palette. Resizing the image will necessitate the mixing of colors, especially in reducing the image.
The original author of the PNGImage component (the basis of the Delphi native component) had a forum where he, and others, posted code snippets on how to do things using the PNGImage component.
Before the forum was taken down I grabbed a copy of all of the code snippets and placed them on the CodeGear Code Central website.
Most if not all of these work with native PNG images and do maintain the Alpha channel.
Here is the complete list of examples included in the package:
Here is the link: CodeCentral PNG Methods
Upvotes: 2