Package com.iizix

Class IcoUtilities

java.lang.Object
com.iizix.IcoUtilities

public class IcoUtilities extends Object
Utility to create an ICO file from transparent PNG files (or opaque JPG files).
Author:
Christopher Mindus
  • Constructor Details

    • IcoUtilities

      public IcoUtilities()
  • Method Details

    • createIco

      public static void createIco(File ico, File... files) throws IOException
      Creates ICO files, i.e. a merge of buffered images from transparent PNG files (or opaque JPG files).
      Parameters:
      ico - The destination icon file.
      files - Files: at least one. The file extensions can be JPEG, JPG, PNG or BMP.
      Throws:
      IOException - For file errors, also if extension cannot be determined.
    • main

      public static void main(String[] args)
      Main class.
      Parameters:
      args - The argument list of files: destination ico, followed by list of JPG/JPEG/PNG/BMP files.