com.jniwrapper.win32.gdi.bitmap
Class BitmapBuilder

java.lang.Object
  extended by com.jniwrapper.win32.gdi.bitmap.BitmapBuilder
Direct Known Subclasses:
BitmapBuilderDirectColorModel

public abstract class BitmapBuilder
extends java.lang.Object


Constructor Summary
protected BitmapBuilder(int bitCount, java.awt.image.BufferedImage bufferedImage)
           
 
Method Summary
protected abstract  void buildColorTable(com.jniwrapper.ArrayParameter resultQuadArray)
           
protected  int getBitCount()
          Returns count of bits per pixel.
 com.jniwrapper.PrimitiveArray getBitmapData()
           
 BitmapInfo getBitmapInfo()
           
protected  java.awt.image.BufferedImage getBufferedImage()
           
protected  java.awt.image.ColorModel getColorModel()
           
protected abstract  int getColorTableSize()
           
 int getHeight()
           
protected  int getImageOffset(int x, int y)
           
protected  int getOffsetInBitmapBytes(int x, int y)
          Offset in bitmap array
protected  int getScansizeBytes()
          Returns count of bytes per row.
abstract  java.awt.Image getTransparentMask()
           
 int getWidth()
           
protected  void setBitmapByte(int offset, byte value)
           
abstract  void setBitmapColors()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitmapBuilder

protected BitmapBuilder(int bitCount,
                        java.awt.image.BufferedImage bufferedImage)
Method Detail

getBitmapInfo

public final BitmapInfo getBitmapInfo()

setBitmapColors

public abstract void setBitmapColors()

getBitCount

protected int getBitCount()
Returns count of bits per pixel.

Returns:
count of bits per pixel.

getScansizeBytes

protected final int getScansizeBytes()
Returns count of bytes per row.

Returns:
count of bytes per row.

setBitmapByte

protected void setBitmapByte(int offset,
                             byte value)

getWidth

public int getWidth()

getHeight

public int getHeight()

getColorTableSize

protected abstract int getColorTableSize()

buildColorTable

protected abstract void buildColorTable(com.jniwrapper.ArrayParameter resultQuadArray)

getImageOffset

protected int getImageOffset(int x,
                             int y)

getOffsetInBitmapBytes

protected int getOffsetInBitmapBytes(int x,
                                     int y)
Offset in bitmap array

Parameters:
x -
y -
Returns:
offset in bitmap array

getTransparentMask

public abstract java.awt.Image getTransparentMask()

getBufferedImage

protected java.awt.image.BufferedImage getBufferedImage()

getColorModel

protected java.awt.image.ColorModel getColorModel()

getBitmapData

public com.jniwrapper.PrimitiveArray getBitmapData()