TPNGImage help

PNG Delphi

Frequently asked questions


This is a list of the most frequently asked questions on PNG Delphi.

Question:
Will it be ported the component to .NET / Kylix plataforms ?
Answer:

I do intend to implement the component in other plataforms, but since these already supports png images, this is not a priority.
.NET already implements alpha transparency which is a major feature.


Question:
How to change the Width, Height, BitDepth properties ?
Answer:

As in version 1.56 the component now allows to resize the image using both Width and Height or Resize methods.
Changing BitDepth or color type is not supported natively thru the component.


Question:
How to use png images in ImageLists, Toolbars, etc... ?
Answer:

To directly use png images in Toolbars would require ImageLists to support PNG image and it does not. ImageLists can not be overrided since it depends on windows internal functions. My suggestion is to include TPNGButton components into the Toolbar to create the same effect since this new component (included in the PNG Delphi package) fully supports png.


Question:
Question on how to "slice" the png image into different images ?
Answer:

See this example.