com.jniwrapper.win32.gdi.bitmap
Class BitmapBuilderDirectColorModel

java.lang.Object
  extended by com.jniwrapper.win32.gdi.bitmap.BitmapBuilder
      extended by com.jniwrapper.win32.gdi.bitmap.BitmapBuilderDirectColorModel

public abstract class BitmapBuilderDirectColorModel
extends BitmapBuilder

This provides functionality for building direct color bitmaps


Constructor Summary
protected BitmapBuilderDirectColorModel(int bitCount, java.awt.image.BufferedImage bufferedImage)
          Creates instance of the BitmapBuilderDirectColorModel
 
Method Summary
 void buildColorTable(com.jniwrapper.ArrayParameter quadArray)
          This method inherited from the base class BitmapBuilder.
 int getColorTableSize()
          Returns Size of the color table
 java.awt.Image getTransparentMask()
          This method always returns null
 void setArbgColor(int argbColor, int offset)
          Sets the color of the specified pixel
 void setBitmapColors()
          Sets the colors of the all pixels in the bitmap
abstract  void setPixel(ARGB argb, int offset)
          Sets the color of the specified pixel
 
Methods inherited from class com.jniwrapper.win32.gdi.bitmap.BitmapBuilder
getBitCount, getBitmapData, getBitmapInfo, getBufferedImage, getColorModel, getHeight, getImageOffset, getOffsetInBitmapBytes, getScansizeBytes, getWidth, setBitmapByte
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitmapBuilderDirectColorModel

protected BitmapBuilderDirectColorModel(int bitCount,
                                        java.awt.image.BufferedImage bufferedImage)
Creates instance of the BitmapBuilderDirectColorModel

Parameters:
bitCount - The number of bits necessary for represent one pixel in the bitmap.
bufferedImage - Buffer of image data.
Method Detail

getColorTableSize

public int getColorTableSize()
Returns Size of the color table

Specified by:
getColorTableSize in class BitmapBuilder
Returns:
The size of the bitmap color table

buildColorTable

public void buildColorTable(com.jniwrapper.ArrayParameter quadArray)
This method inherited from the base class BitmapBuilder. It is useless in this class and it do nothing.

Specified by:
buildColorTable in class BitmapBuilder
Parameters:
quadArray - Array for storing elements of the color table.

setBitmapColors

public void setBitmapColors()
Sets the colors of the all pixels in the bitmap

Specified by:
setBitmapColors in class BitmapBuilder

setArbgColor

public void setArbgColor(int argbColor,
                         int offset)
Sets the color of the specified pixel

Parameters:
argbColor - Color
offset - Offset of the pixel in the bitmap bytes array

setPixel

public abstract void setPixel(ARGB argb,
                              int offset)
Sets the color of the specified pixel

Parameters:
argb - Color
offset - Offeset of the pixel in the bitmap bytes array

getTransparentMask

public java.awt.Image getTransparentMask()
This method always returns null

Specified by:
getTransparentMask in class BitmapBuilder
Returns:
null