Skip to main content
A newer version of this page is available. .

TdxGPImageCodecPNG Class

A PNG image format codec.

Declaration

TdxGPImageCodecPNG = class(
    TdxGPImageCodec
)

Remarks

DevExpress products use this codec to work with images in the Portable Network Graphics (PNG) format. The codec relies on the functionality of the native PNG encoder and decoder that Windows Imaging Component (WIC) provides.

The TdxGPImageCodecGIF class provides the following members that allow you to:

  • Obtain a simple PNG format description and the corresponding filename extension (Description and Extensions);

  • Identify if the specified stream contains a PNG image at the current position (CanLoadStream);

  • Read a PNG image’s dimensions from a stream (GetSize);

  • Obtain a deprecated image format ID that corresponds to the PNG image codec (ID);

  • Persist a PNG image in a stream (Load and Save).

You can set a Smart Image container’s ImageCodec property to a reference to the TdxGPImageCodecPNG class to convert the stored image to the PNG format.

Inheritance

See Also