org.tbee.swing
Class IcoUtils

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

public class IcoUtils
extends java.lang.Object

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

Version:
$Revision: 1.6 $

Field Summary
static java.lang.String SOURCECODE_VERSION
          Standard variable for determining version of a class file.
 
Constructor Summary
IcoUtils()
           
 
Method Summary
static java.util.List getListOfImageIcons(java.io.InputStream inputStream)
          Return a list of the Images inside a ICO InputStream
static java.util.List getListOfImageIcons(java.io.InputStream inputStream, int bpp)
          Return a list of the Images inside a ICO InputStream limited to a certain number of bits-per-pixel
static java.util.List getListOfImageIcons(java.io.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(java.lang.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 java.lang.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 java.util.List getListOfImageIcons(java.io.InputStream inputStream)
                                          throws java.io.IOException
Return a list of the Images inside a ICO InputStream

Throws:
java.io.IOException

getListOfImageIcons

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

Throws:
java.io.IOException

getListOfImageIcons

public static java.util.List getListOfImageIcons(java.io.InputStream inputStream,
                                                 int minBPP,
                                                 int maxBPP,
                                                 int minColorCount,
                                                 int maxColorCount)
                                          throws java.io.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:
java.io.IOException

main

public static void main(java.lang.String[] args)


Copyright © 2010 KnowledgePlaza. All Rights Reserved.