|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.DIBitmap
public class DIBitmap
This class provides functionality for working with bitmaps in DIB (device-independent bitmap ) format.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jniwrapper.win32.gdi.Bitmap |
---|
Bitmap.Compression, Bitmap.PredefinedBitmap |
Nested classes/interfaces 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 | |
---|---|
DIBitmap()
Creates instance of the DIBitmap . |
|
DIBitmap(BitmapInfo bitmapInfo)
Creates instance of the DIBitmap with the specified instance of the BitmapInfo |
|
DIBitmap(DDBitmap ddBitmap)
Creates instance of the DIBitmap from the instance of DDBitmap |
|
DIBitmap(java.awt.Image image)
Creates instance of the DIBitmap from the Image |
|
DIBitmap(int width,
int height)
Creates instance of the DIBitmap with the specified width and height |
|
DIBitmap(long value)
Creates instance of the DIBitmap from the specified value |
|
DIBitmap(java.lang.String fileName)
Creates instance of the DIBitmap from the file |
Method Summary | |
---|---|
BitmapInfo |
getBitmapInfo()
Returns instance of the BitmapInfo of this bitmap |
BitmapInfoHeader |
getBitmapInfoHeader()
Returns the BitmapInfo structure that contains information about the bitmap width, height, bits per pixel, total image size, number of colors in palette, and other information. |
BitmapStructure |
getBitmapStructure()
Returns instance of BitmapStructure of this bitmap |
byte[] |
getBytes()
Returns array of device independent bitmap bytes as byte array. |
DibSection |
getDIBSection()
Returns instance of the DibSection of this bitmap |
com.jniwrapper.PrimitiveArray |
getDIBytes()
Returns an array of device independent bitmap bytes as PrimitiveArray of UInt8. |
void |
loadFromFile(java.lang.String fileName)
Load bitmap from the file |
void |
setDIBytes(com.jniwrapper.PrimitiveArray bytes)
Sets bytes of the bitmap. |
DDBitmap |
toDDBitmap(DC dc)
Creates and returns instance of the DDBitmap , initialized by this bitmap |
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, castTo, getDebugInfo, getLength, getValue, hashCode, isNull, read, setValue, toString, write |
Methods inherited from class com.jniwrapper.Parameter |
---|
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DIBitmap()
DIBitmap
.
public DIBitmap(long value)
DIBitmap
from the specified value
value
- Value of the Handle
instance then specifies bitmappublic DIBitmap(int width, int height)
DIBitmap
with the specified width and height
width
- Width of the bitmapheight
- Height of the bitmappublic DIBitmap(DDBitmap ddBitmap)
DIBitmap
from the instance of DDBitmap
ddBitmap
- The instance of DDBitmap
public DIBitmap(BitmapInfo bitmapInfo)
DIBitmap
with the specified instance of the BitmapInfo
bitmapInfo
- instance of the BitmapInfo
that defines the dimensions and color
information for a device independent bitmappublic DIBitmap(java.lang.String fileName)
DIBitmap
from the file
fileName
- The name of the bitmap filepublic DIBitmap(java.awt.Image image)
DIBitmap
from the Image
image
- Instance of the Image
Method Detail |
---|
public void loadFromFile(java.lang.String fileName)
loadFromFile
in class Bitmap
fileName
- The name of the bitmap filepublic BitmapInfoHeader getBitmapInfoHeader()
getBitmapInfoHeader
in class Bitmap
public BitmapStructure getBitmapStructure()
BitmapStructure
of this bitmap
BitmapStructure
of this bitmappublic BitmapInfo getBitmapInfo()
BitmapInfo
of this bitmap
getBitmapInfo
in class Bitmap
BitmapInfo
of this bitmappublic DibSection getDIBSection()
DibSection
of this bitmap
DibSection
of this bitmappublic DDBitmap toDDBitmap(DC dc)
DDBitmap
, initialized by this bitmap
dc
- Device contexts
DDBitmap
, initialized by this bitmappublic com.jniwrapper.PrimitiveArray getDIBytes()
getDIBytes
in class Bitmap
public byte[] getBytes()
getBytes
in class Bitmap
public void setDIBytes(com.jniwrapper.PrimitiveArray bytes)
setDIBytes
in class Bitmap
bytes
- Bytes of the bitmap
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |