daoc.editor.image
Class ImageLoader

java.lang.Object
  extended bydaoc.editor.image.ImageLoader

public class ImageLoader
extends java.lang.Object

Loads images based on type.


Field Summary
static int BMP
           
static int DDS
           
static int TGA
           
static int UNKNOWN
           
 
Constructor Summary
ImageLoader()
           
 
Method Summary
static int getType(java.lang.String filename)
           
static boolean isPowerOfTwo(int x)
           
static java.awt.image.BufferedImage loadImage(java.lang.String filename, boolean log)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN

public static final int UNKNOWN
See Also:
Constant Field Values

TGA

public static final int TGA
See Also:
Constant Field Values

BMP

public static final int BMP
See Also:
Constant Field Values

DDS

public static final int DDS
See Also:
Constant Field Values
Constructor Detail

ImageLoader

public ImageLoader()
Method Detail

loadImage

public static final java.awt.image.BufferedImage loadImage(java.lang.String filename,
                                                           boolean log)

getType

public static final int getType(java.lang.String filename)

isPowerOfTwo

public static final boolean isPowerOfTwo(int x)