com.mebigfatguy.pixelle
Class PixelleImage

java.lang.Object
  extended by com.mebigfatguy.pixelle.PixelleImage

public class PixelleImage
extends java.lang.Object

a representation of an image to manipulate. Encapsulates two BufferedImages, one to represent the real image, and the second to represent selection.


Constructor Summary
PixelleImage()
           
PixelleImage(java.awt.image.BufferedImage img)
           
 
Method Summary
 void draw(java.awt.Graphics g, int left, int top, int width, int height)
           
 java.awt.image.DataBuffer getBuffer()
           
 int getHeight()
           
 java.awt.image.BufferedImage getSaveImage()
           
 int getSelectionByte(int xByteOffset, int y)
           
 int getType()
           
 int getWidth()
           
 void setSelectionByte(int xByteOffset, int y, int byteValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PixelleImage

public PixelleImage()

PixelleImage

public PixelleImage(java.awt.image.BufferedImage img)
Method Detail

getSaveImage

public java.awt.image.BufferedImage getSaveImage()

getType

public int getType()

getWidth

public final int getWidth()

getHeight

public final int getHeight()

getBuffer

public java.awt.image.DataBuffer getBuffer()

draw

public void draw(java.awt.Graphics g,
                 int left,
                 int top,
                 int width,
                 int height)

getSelectionByte

public int getSelectionByte(int xByteOffset,
                            int y)

setSelectionByte

public void setSelectionByte(int xByteOffset,
                             int y,
                             int byteValue)


Copyright © 2008 MeBigFatGuy.com. All Rights Reserved.