com.jniwrapper.win32.gdi
Class DDBitmap
java.lang.Object
com.jniwrapper.Parameter
com.jniwrapper.Pointer.Void
com.jniwrapper.win32.Handle
com.jniwrapper.win32.gdi.GdiObject
com.jniwrapper.win32.gdi.Bitmap
com.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.
Fields inherited from class com.jniwrapper.Parameter |
LICENSE_TYPE, V |
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.Pointer.Void |
asFunction, asFunction, asTypedPointer, castTo, 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 |
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)
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