com.jniwrapper.win32.gdi
Class DDBitmap

java.lang.Object
  extended bycom.jniwrapper.Parameter
      extended bycom.jniwrapper.Pointer.Void
          extended bycom.jniwrapper.win32.Handle
              extended bycom.jniwrapper.win32.gdi.GdiObject
                  extended bycom.jniwrapper.win32.gdi.Bitmap
                      extended bycom.jniwrapper.win32.gdi.DDBitmap
All Implemented Interfaces:
com.jniwrapper.IntegerParameter, com.jniwrapper.PointerParameter

public class DDBitmap
extends Bitmap

This class provides functionality for working with bitmaps in DDB (device-dependent bitmap) format.


Nested Class Summary
 
Nested classes inherited from class com.jniwrapper.win32.gdi.Bitmap
Bitmap.Compression, Bitmap.PredefinedBitmap
 
Nested classes inherited from class com.jniwrapper.win32.gdi.GdiObject
GdiObject.ImageLoadParameters, GdiObject.ImageType, GdiObject.Type
 
Field Summary
 
Fields inherited from class com.jniwrapper.win32.gdi.Bitmap
_builderFactory, BLACK_COLOR, CBM_INIT, DIB_PAL_COLORS, DIB_RGB_COLORS, FUNCTION_CREATEDIBITMAP, FUNCTION_GET_DIBITS, FUNCTION_SET_DIBITS, WHITE_COLOR
 
Fields inherited from class com.jniwrapper.win32.gdi.GdiObject
GDI_ERROR, HGDI_ERROR
 
Fields inherited from class com.jniwrapper.win32.Handle
INFINITE_TIMEOUT, INVALID_HANDLE_VALUE, STATUS_ABANDONED_WAIT_0, STATUS_TIMEOUT, STATUS_WAIT_0
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
DDBitmap()
           
DDBitmap(Bitmap.PredefinedBitmap predefinedBitmap)
           
DDBitmap(DC dc, Bitmap.PredefinedBitmap predefinedBitmap)
           
DDBitmap(DC dc, DIBitmap diBitmap)
           
DDBitmap(DC dc, java.awt.Image image)
           
DDBitmap(DC dc, int width, int height)
           
DDBitmap(DC dc, java.lang.String fileName)
           
DDBitmap(DIBitmap diBitmap)
           
DDBitmap(java.awt.Image image)
           
DDBitmap(int width, int height)
           
DDBitmap(long value)
           
DDBitmap(java.lang.String fileName)
           
 
Method Summary
 BitmapInfo getBitmapInfo()
           
 BitmapInfoHeader getBitmapInfoHeader()
           
 BitmapStructure getBitmapStructure()
           
 byte[] getBytes()
          Returns an array of device independent bitmap bytes as PrimitiveArray of UInt8.
 com.jniwrapper.PrimitiveArray getDIBytes()
          Returns an array of device independent bitmap bytes as PrimitiveArray of UInt8.
 void loadFromFile(java.lang.String fileName)
           
 void loadPredefinedBitmap(Bitmap.PredefinedBitmap predefinedBitmap)
           
 void setDIBytes(com.jniwrapper.PrimitiveArray bytes)
          Sets bytes of the bitmap.
 DIBitmap toDIBitmap()
           
 
Methods inherited from class com.jniwrapper.win32.gdi.Bitmap
createDIBSection, createDIBSection, deleteObject, getBitCount, getBitmapLineLength, getBytesCount, getDIBits, getDIBits, getHeight, getSize, getTransparentMask, getWidth, isTransparent, saveToFile, setDIBits, setSize, setTransparentMask, toImage
 
Methods inherited from class com.jniwrapper.win32.gdi.GdiObject
getObject, getObjectType
 
Methods inherited from class com.jniwrapper.win32.Handle
clone, closeHandle, equals, waitFor, waitFor
 
Methods inherited from class com.jniwrapper.Pointer.Void
asFunction, asFunction, asTypedPointer, castTo, getDebugInfo, getLength, getValue, hashCode, isNull, read, setValue, toString, write
 
Methods inherited from class com.jniwrapper.Parameter
, a, a, acceptIOPerformer, asReturnValue, b, dataBufferAssigned, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, indent, pop, push, read, read, setDataBuffer, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DDBitmap

public DDBitmap()

DDBitmap

public DDBitmap(long value)

DDBitmap

public DDBitmap(int width,
                int height)

DDBitmap

public DDBitmap(DC dc,
                int width,
                int height)

DDBitmap

public DDBitmap(DIBitmap diBitmap)

DDBitmap

public DDBitmap(DC dc,
                DIBitmap diBitmap)

DDBitmap

public DDBitmap(java.lang.String fileName)

DDBitmap

public DDBitmap(DC dc,
                java.lang.String fileName)

DDBitmap

public DDBitmap(java.awt.Image image)

DDBitmap

public DDBitmap(DC dc,
                java.awt.Image image)

DDBitmap

public DDBitmap(Bitmap.PredefinedBitmap predefinedBitmap)

DDBitmap

public DDBitmap(DC dc,
                Bitmap.PredefinedBitmap predefinedBitmap)
Method Detail

loadFromFile

public void loadFromFile(java.lang.String fileName)
Specified by:
loadFromFile in class Bitmap

loadPredefinedBitmap

public void loadPredefinedBitmap(Bitmap.PredefinedBitmap predefinedBitmap)

getBitmapInfo

public BitmapInfo getBitmapInfo()
Specified by:
getBitmapInfo in class Bitmap

getBitmapStructure

public BitmapStructure getBitmapStructure()

getBitmapInfoHeader

public BitmapInfoHeader getBitmapInfoHeader()
Specified by:
getBitmapInfoHeader in class Bitmap

toDIBitmap

public DIBitmap toDIBitmap()

getDIBytes

public com.jniwrapper.PrimitiveArray getDIBytes()
Returns an array of device independent bitmap bytes as PrimitiveArray of UInt8.

Specified by:
getDIBytes in class Bitmap
Returns:
array of bitmap bytes.

getBytes

public byte[] getBytes()
Returns an array of device independent bitmap bytes as PrimitiveArray of UInt8.

Specified by:
getBytes in class Bitmap
Returns:
array of bitmap bytes.

setDIBytes

public void setDIBytes(com.jniwrapper.PrimitiveArray bytes)
Description copied from class: Bitmap
Sets bytes of the bitmap.

Specified by:
setDIBytes in class Bitmap
Parameters:
bytes -