com.teamdev.jxcapture.image.win
Class ImmutableBitmap

java.lang.Object
  extended by com.jniwrapper.Parameter
      extended by com.jniwrapper.Pointer.Void
          extended by com.teamdev.jxdesktop.win32.Handle
              extended by com.teamdev.jxdesktop.win32.gdi.GdiObject
                  extended by com.teamdev.jxdesktop.win32.gdi.Bitmap
                      extended by 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 Class Summary
 
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
 
Field Summary
 
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)
           
 
Method Summary
 void deleteObject()
           
 com.teamdev.jxdesktop.win32.gdi.BitmapInfo getBitmapInfo()
           
 com.teamdev.jxdesktop.win32.gdi.BitmapInfoHeader getBitmapInfoHeader()
           
 byte[] getBytes()
           
 com.jniwrapper.PrimitiveArray getDIBytes()
           
 com.teamdev.jxdesktop.win32.gdi.Bitmap getSubImage(java.awt.Rectangle rectangle)
           
 void loadFromFile(java.lang.String fileName)
           
 void setDIBytes(com.jniwrapper.PrimitiveArray bytes)
           
 java.awt.image.BufferedImage toImage()
           
 
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
 

Constructor Detail

ImmutableBitmap

public ImmutableBitmap(byte[] rgbBuffer,
                       boolean flippingRequired,
                       int width,
                       int height,
                       BitmapType bitmapType)
Method Detail

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)