TPNGImage help

TPNGImage

Bit and partial transparency


In order to have more compability between Windows, TBitmap and TPNGObject features, TPNGObject introduces three different transparency modes:

  • None - When there are no transparent areas in the image

  • Bit - Each pixel may be full transparent or opaque against the background

  • Partial - Pixels may be translucid (semi transparent)

TPNGObject provides a read-only property to obtain the transparency mode for the image, TransparentMode property. Also changing TransparentColor property changes the image to Bit transparency mode always, loose partial transparency information.