TPNGImage help

TPNGImage

Components > TPNGObject > Properties > Filters


Returns the filters to use when saving an image.

type
TFilter = (pfNone, pfSub, pfUp, pfAverage, pfPaeth);
type TFilters = set of TFilter;
property Filters: TFilters;

Description

When saving the image, Portable Network Graphics allows to use different filters to reduce the final image size. To compress the best as possible, the component tests all the selected filters for each image line to detect the best. This property allows to set which filters to test, meaning that if you select all the options, the image will get smallest as it can be but it will compress five times slower than if you had choosen only one item.

Comments
It is always recommended to set this property to test all the filters, but for speed purposes you might also choose only one filter and get full speed when saving.