com.teamdev.jxcapture.image.win
Class ImmutableBitmap
java.lang.Object
com.jniwrapper.Parameter
com.jniwrapper.Pointer.Void
com.teamdev.jxdesktop.win32.Handle
com.teamdev.jxdesktop.win32.gdi.GdiObject
com.teamdev.jxdesktop.win32.gdi.Bitmap
com.teamdev.jxcapture.image.win.ImmutableBitmap
- All Implemented Interfaces:
- com.jniwrapper.IntegerParameter, com.jniwrapper.PointerParameter
public class ImmutableBitmap
- extends com.teamdev.jxdesktop.win32.gdi.Bitmap
Bitmap image from a byte array.
Nested classes/interfaces inherited from class com.teamdev.jxdesktop.win32.gdi.Bitmap |
com.teamdev.jxdesktop.win32.gdi.Bitmap.Compression, com.teamdev.jxdesktop.win32.gdi.Bitmap.PredefinedBitmap |
Nested classes/interfaces inherited from class com.teamdev.jxdesktop.win32.gdi.GdiObject |
com.teamdev.jxdesktop.win32.gdi.GdiObject.ImageLoadParameters, com.teamdev.jxdesktop.win32.gdi.GdiObject.ImageType, com.teamdev.jxdesktop.win32.gdi.GdiObject.Type |
Fields inherited from class com.teamdev.jxdesktop.win32.gdi.Bitmap |
_builderFactory, CBM_INIT, DIB_PAL_COLORS, DIB_RGB_COLORS, FUNCTION_CREATEDIBITMAP, FUNCTION_GET_DIBITS, FUNCTION_SET_DIBITS |
Fields inherited from class com.teamdev.jxdesktop.win32.gdi.GdiObject |
GDI_ERROR, HGDI_ERROR |
Fields inherited from class com.teamdev.jxdesktop.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 |
ImmutableBitmap(byte[] rgbBuffer,
boolean flippingRequired,
int width,
int height,
BitmapType bitmapType)
|
Methods inherited from class com.teamdev.jxdesktop.win32.gdi.Bitmap |
createDIBSection, createDIBSection, getBitCount, getDIBits, getDIBits, getHeight, getSize, getTransparentMask, getWidth, isTransparent, saveToFile, setDIBits, setSize, setTransparentMask |
Methods inherited from class com.teamdev.jxdesktop.win32.gdi.GdiObject |
getObject, getObjectType |
Methods inherited from class com.teamdev.jxdesktop.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 |
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 |
ImmutableBitmap
public ImmutableBitmap(byte[] rgbBuffer,
boolean flippingRequired,
int width,
int height,
BitmapType bitmapType)
getBitmapInfoHeader
public com.teamdev.jxdesktop.win32.gdi.BitmapInfoHeader getBitmapInfoHeader()
- Specified by:
getBitmapInfoHeader
in class com.teamdev.jxdesktop.win32.gdi.Bitmap
getBitmapInfo
public com.teamdev.jxdesktop.win32.gdi.BitmapInfo getBitmapInfo()
- Specified by:
getBitmapInfo
in class com.teamdev.jxdesktop.win32.gdi.Bitmap
getDIBytes
public com.jniwrapper.PrimitiveArray getDIBytes()
- Specified by:
getDIBytes
in class com.teamdev.jxdesktop.win32.gdi.Bitmap
getBytes
public byte[] getBytes()
- Specified by:
getBytes
in class com.teamdev.jxdesktop.win32.gdi.Bitmap
setDIBytes
public void setDIBytes(com.jniwrapper.PrimitiveArray bytes)
- Specified by:
setDIBytes
in class com.teamdev.jxdesktop.win32.gdi.Bitmap
loadFromFile
public void loadFromFile(java.lang.String fileName)
- Specified by:
loadFromFile
in class com.teamdev.jxdesktop.win32.gdi.Bitmap
toImage
public java.awt.image.BufferedImage toImage()
- Overrides:
toImage
in class com.teamdev.jxdesktop.win32.gdi.Bitmap
deleteObject
public void deleteObject()
- Overrides:
deleteObject
in class com.teamdev.jxdesktop.win32.gdi.Bitmap
getSubImage
public com.teamdev.jxdesktop.win32.gdi.Bitmap getSubImage(java.awt.Rectangle rectangle)