jwx!
v0.0.2


wx
Class Image

java.lang.Object
  extended bywx.Object
      extended bywx.Image

public class Image
extends Object


Field Summary
static Image NullImage
           
 
Constructor Summary
Image()
           
Image(Image image)
           
Image(int width, int height)
           
Image(int width, int height, boolean clear)
           
Image(int width, int height, short[] data)
           
Image(int width, int height, short[] data, boolean static_data)
           
Image(java.lang.String name)
           
Image(java.lang.String name, int type)
           
Image(java.lang.String name, int type, int index)
           
Image(java.lang.String name, java.lang.String mimetype)
           
Image(java.lang.String name, java.lang.String mimetype, int index)
           
 
Method Summary
static void addHandler(ImageHandler handler)
           
 boolean canRead(java.lang.String filename)
           
static void cleanUpHandlers()
           
 boolean convertAlphaToMask()
           
 boolean convertAlphaToMask(char threshold)
           
 Image convertToMono(char r, char g, char b)
           
 Image copy()
           
 void delete()
           
 void destroy()
           
 boolean findFirstUnusedColour(short[] r, short[] g, short[] b)
           
 boolean findFirstUnusedColour(short[] r, short[] g, short[] b, char startR)
           
 boolean findFirstUnusedColour(short[] r, short[] g, short[] b, char startR, char startG)
           
 boolean findFirstUnusedColour(short[] r, short[] g, short[] b, char startR, char startG, char startB)
           
static ImageHandler findHandler(int imageType)
           
static ImageHandler findHandler(java.lang.String name)
           
static ImageHandler findHandler(java.lang.String extension, int imageType)
           
static ImageHandler findHandlerMime(java.lang.String mimetype)
           
 java.lang.String getAlpha()
           
 char getAlpha(int x, int y)
           
 char getBlue(int x, int y)
           
 java.lang.String getData()
           
 char getGreen(int x, int y)
           
 int getHeight()
           
static int getImageCount(java.lang.String filename)
           
static int getImageCount(java.lang.String filename, int type)
           
static java.lang.String getImageExtWildcard()
           
 char getMaskBlue()
           
 char getMaskGreen()
           
 char getMaskRed()
           
 java.lang.String getOption(java.lang.String name)
           
 int getOptionInt(java.lang.String name)
           
 boolean getOrFindMaskColour(short[] r, short[] g, short[] b)
           
 Palette getPalette()
           
 char getRed(int x, int y)
           
 Image getSubImage(Rect rect)
           
 int getWidth()
           
 boolean hasAlpha()
           
 boolean hasMask()
           
 boolean hasOption(java.lang.String name)
           
 void initAlpha()
           
static void initStandardHandlers()
           
static void insertHandler(ImageHandler handler)
           
 boolean isTransparent(int x, int y)
           
 boolean isTransparent(int x, int y, char threshold)
           
 boolean loadFile(java.lang.String name)
           
 boolean loadFile(java.lang.String name, int type)
           
 boolean loadFile(java.lang.String name, int type, int index)
           
 boolean loadFile(java.lang.String name, java.lang.String mimetype)
           
 boolean loadFile(java.lang.String name, java.lang.String mimetype, int index)
           
 Image mirror()
           
 Image mirror(boolean horizontally)
           
 boolean ok()
           
static boolean removeHandler(java.lang.String name)
           
 void replace(char r1, char g1, char b1, char r2, char g2, char b2)
           
 Image rescale(int width, int height)
           
 Image resize(Size size, Point pos)
           
 Image resize(Size size, Point pos, int red)
           
 Image resize(Size size, Point pos, int red, int green)
           
 Image resize(Size size, Point pos, int red, int green, int blue)
           
 Image rotate(double angle, Point rotationCentre)
           
 Image rotate(double angle, Point rotationCentre, boolean interpolating)
           
 Image rotate(double angle, Point rotationCentre, boolean interpolating, Point offsetAfterRotation)
           
 Image rotate90()
           
 Image rotate90(boolean clockwise)
           
 void rotateHue(double angle)
           
 boolean saveFile(java.lang.String name)
           
 boolean saveFile(java.lang.String name, int type)
           
 boolean saveFile(java.lang.String name, java.lang.String mimetype)
           
 Image scale(int width, int height)
           
 void setAlpha()
           
 void setAlpha(int x, int y, char alpha)
           
 void setAlpha(java.lang.String alpha)
           
 void setAlpha(java.lang.String alpha, boolean static_data)
           
 void setData(java.lang.String data)
           
 void setMask()
           
 void setMask(boolean hasMask)
           
 void setMaskColour(char red, char green, char blue)
           
 boolean setMaskFromImage(Image mask, char mr, char mg, char mb)
           
 void setOption(java.lang.String name, int value)
           
 void setOption(java.lang.String name, java.lang.String value)
           
 void setPalette(Palette palette)
           
 void setRGB(int x, int y, char red, char green, char blue)
           
 void setRGB(Rect rect, char red, char green, char blue)
           
 Image size(Size size, Point pos)
           
 Image size(Size size, Point pos, int red)
           
 Image size(Size size, Point pos, int red, int green)
           
 Image size(Size size, Point pos, int red, int green, int blue)
           
 
Methods inherited from class wx.Object
_, getTanslation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NullImage

public static final Image NullImage
Constructor Detail

Image

public Image()

Image

public Image(Image image)

Image

public Image(int width,
             int height,
             boolean clear)

Image

public Image(int width,
             int height)

Image

public Image(int width,
             int height,
             short[] data,
             boolean static_data)

Image

public Image(int width,
             int height,
             short[] data)

Image

public Image(java.lang.String name,
             int type,
             int index)

Image

public Image(java.lang.String name,
             int type)

Image

public Image(java.lang.String name)

Image

public Image(java.lang.String name,
             java.lang.String mimetype,
             int index)

Image

public Image(java.lang.String name,
             java.lang.String mimetype)
Method Detail

delete

public void delete()
Overrides:
delete in class Object

addHandler

public static void addHandler(ImageHandler handler)

canRead

public boolean canRead(java.lang.String filename)

cleanUpHandlers

public static void cleanUpHandlers()

convertAlphaToMask

public boolean convertAlphaToMask(char threshold)

convertAlphaToMask

public boolean convertAlphaToMask()

convertToMono

public Image convertToMono(char r,
                           char g,
                           char b)

copy

public Image copy()

destroy

public void destroy()

findFirstUnusedColour

public boolean findFirstUnusedColour(short[] r,
                                     short[] g,
                                     short[] b,
                                     char startR,
                                     char startG,
                                     char startB)

findFirstUnusedColour

public boolean findFirstUnusedColour(short[] r,
                                     short[] g,
                                     short[] b,
                                     char startR,
                                     char startG)

findFirstUnusedColour

public boolean findFirstUnusedColour(short[] r,
                                     short[] g,
                                     short[] b,
                                     char startR)

findFirstUnusedColour

public boolean findFirstUnusedColour(short[] r,
                                     short[] g,
                                     short[] b)

findHandler

public static ImageHandler findHandler(java.lang.String name)

findHandler

public static ImageHandler findHandler(java.lang.String extension,
                                       int imageType)

findHandler

public static ImageHandler findHandler(int imageType)

findHandlerMime

public static ImageHandler findHandlerMime(java.lang.String mimetype)

getImageExtWildcard

public static java.lang.String getImageExtWildcard()

getAlpha

public char getAlpha(int x,
                     int y)

getAlpha

public java.lang.String getAlpha()

getBlue

public char getBlue(int x,
                    int y)

getData

public java.lang.String getData()

getGreen

public char getGreen(int x,
                     int y)

getImageCount

public static int getImageCount(java.lang.String filename,
                                int type)

getImageCount

public static int getImageCount(java.lang.String filename)

getHeight

public int getHeight()

getMaskBlue

public char getMaskBlue()

getMaskGreen

public char getMaskGreen()

getMaskRed

public char getMaskRed()

getOrFindMaskColour

public boolean getOrFindMaskColour(short[] r,
                                   short[] g,
                                   short[] b)

getPalette

public Palette getPalette()

getRed

public char getRed(int x,
                   int y)

getSubImage

public Image getSubImage(Rect rect)

getWidth

public int getWidth()

hasAlpha

public boolean hasAlpha()

hasMask

public boolean hasMask()

getOption

public java.lang.String getOption(java.lang.String name)

getOptionInt

public int getOptionInt(java.lang.String name)

hasOption

public boolean hasOption(java.lang.String name)

initAlpha

public void initAlpha()

initStandardHandlers

public static void initStandardHandlers()

insertHandler

public static void insertHandler(ImageHandler handler)

isTransparent

public boolean isTransparent(int x,
                             int y,
                             char threshold)

isTransparent

public boolean isTransparent(int x,
                             int y)

loadFile

public boolean loadFile(java.lang.String name,
                        int type,
                        int index)

loadFile

public boolean loadFile(java.lang.String name,
                        int type)

loadFile

public boolean loadFile(java.lang.String name)

loadFile

public boolean loadFile(java.lang.String name,
                        java.lang.String mimetype,
                        int index)

loadFile

public boolean loadFile(java.lang.String name,
                        java.lang.String mimetype)

ok

public boolean ok()

removeHandler

public static boolean removeHandler(java.lang.String name)

mirror

public Image mirror(boolean horizontally)

mirror

public Image mirror()

replace

public void replace(char r1,
                    char g1,
                    char b1,
                    char r2,
                    char g2,
                    char b2)

rescale

public Image rescale(int width,
                     int height)

resize

public Image resize(Size size,
                    Point pos,
                    int red,
                    int green,
                    int blue)

resize

public Image resize(Size size,
                    Point pos,
                    int red,
                    int green)

resize

public Image resize(Size size,
                    Point pos,
                    int red)

resize

public Image resize(Size size,
                    Point pos)

rotate

public Image rotate(double angle,
                    Point rotationCentre,
                    boolean interpolating,
                    Point offsetAfterRotation)

rotate

public Image rotate(double angle,
                    Point rotationCentre,
                    boolean interpolating)

rotate

public Image rotate(double angle,
                    Point rotationCentre)

rotateHue

public void rotateHue(double angle)

rotate90

public Image rotate90(boolean clockwise)

rotate90

public Image rotate90()

saveFile

public boolean saveFile(java.lang.String name,
                        int type)

saveFile

public boolean saveFile(java.lang.String name,
                        java.lang.String mimetype)

saveFile

public boolean saveFile(java.lang.String name)

scale

public Image scale(int width,
                   int height)

size

public Image size(Size size,
                  Point pos,
                  int red,
                  int green,
                  int blue)

size

public Image size(Size size,
                  Point pos,
                  int red,
                  int green)

size

public Image size(Size size,
                  Point pos,
                  int red)

size

public Image size(Size size,
                  Point pos)

setAlpha

public void setAlpha(java.lang.String alpha,
                     boolean static_data)

setAlpha

public void setAlpha(java.lang.String alpha)

setAlpha

public void setAlpha()

setAlpha

public void setAlpha(int x,
                     int y,
                     char alpha)

setData

public void setData(java.lang.String data)

setMask

public void setMask(boolean hasMask)

setMask

public void setMask()

setMaskColour

public void setMaskColour(char red,
                          char green,
                          char blue)

setMaskFromImage

public boolean setMaskFromImage(Image mask,
                                char mr,
                                char mg,
                                char mb)

setOption

public void setOption(java.lang.String name,
                      java.lang.String value)

setOption

public void setOption(java.lang.String name,
                      int value)

setPalette

public void setPalette(Palette palette)

setRGB

public void setRGB(int x,
                   int y,
                   char red,
                   char green,
                   char blue)

setRGB

public void setRGB(Rect rect,
                   char red,
                   char green,
                   char blue)

jwx!
v0.0.2


© 2006 Amit G Mendapara.