Package com.iizix

Class IcoUtilities


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

      Constructors 
      ConstructorDescription
      IcoUtilities() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static voidcreateIco​(java.io.File ico, java.io.File... files)
      Creates ICO files, i.e.
      static voidmain​(java.lang.String[] args)
      Main class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IcoUtilities

        public IcoUtilities()
    • Method Detail

      • createIco

        public static void createIco​(java.io.File ico,
                                     java.io.File... files)
                              throws java.io.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:
        java.io.IOException - For file errors, also if extension cannot be determined.
      • main

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