Save Png

function copy link

Purpose

Saves the image to disk in PNG format.

Syntax

IDImage idi = new()
// 
idi.savePng(File)

Arguments

File This is the absolute path of the file in which to save the image. If it does not include the proper extension, this is added by the system.

Return value

Returns True if the save was successful, and False otherwise.

  • This library cannot be used in offline applications.
  • In Java, the PNG format is handled natively beginning with Java 1.6. For earlier versions of Java, use the jai_imageio.jar library to support the PNG format.

    The download link for the JAR is listed in the IDImage article.

Changed on: 08/04/2025 / From version: 10.0.4300