org.tbee.swing
Class IcoUtils

java.lang.Object
  extended by org.tbee.swing.IcoUtils

public class IcoUtils
extends Object

This class is a convenience wrapper on top of the AcLibIco - the ICO file library.

Version:
$Revision: 1.6 $

Field Summary
static String SOURCECODE_VERSION
          Standard variable for determining version of a class file.
 
Constructor Summary
IcoUtils()
           
 
Method Summary
static List getListOfImageIcons(InputStream inputStream)
          Return a list of the Images inside a ICO InputStream
static List getListOfImageIcons(InputStream inputStream, int bpp)
          Return a list of the Images inside a ICO InputStream limited to a certain number of bits-per-pixel
static List getListOfImageIcons(InputStream inputStream, int minBPP, int maxBPP, int minColorCount, int maxColorCount)
          Return a list of the Images inside a ICO InputStream with filtering on bits-per-pixel and the actual colorcount NOTE: even though BBP can be 8 or 24, the number of of colors can be 256 in both situations; filtering on colorcount would then return both icons.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCECODE_VERSION

public static final String SOURCECODE_VERSION
Standard variable for determining version of a class file.

See Also:
Constant Field Values
Constructor Detail

IcoUtils

public IcoUtils()
Method Detail

getListOfImageIcons

public static List getListOfImageIcons(InputStream inputStream)
                                throws IOException
Return a list of the Images inside a ICO InputStream

Throws:
IOException

getListOfImageIcons

public static List getListOfImageIcons(InputStream inputStream,
                                       int bpp)
                                throws IOException
Return a list of the Images inside a ICO InputStream limited to a certain number of bits-per-pixel

Throws:
IOException

getListOfImageIcons

public static List getListOfImageIcons(InputStream inputStream,
                                       int minBPP,
                                       int maxBPP,
                                       int minColorCount,
                                       int maxColorCount)
                                throws IOException
Return a list of the Images inside a ICO InputStream with filtering on bits-per-pixel and the actual colorcount NOTE: even though BBP can be 8 or 24, the number of of colors can be 256 in both situations; filtering on colorcount would then return both icons.

Throws:
IOException

main

public static void main(String[] args)


Copyright © 2012 KnowledgePlaza. All Rights Reserved.