com.jniwrapper.win32.gdi
Class BitmapStructure

java.lang.Object
  extended by com.jniwrapper.Parameter
      extended by com.jniwrapper.Structure
          extended by com.jniwrapper.win32.gdi.BitmapStructure
All Implemented Interfaces:
com.jniwrapper.AlignmentAwareParameter, com.jniwrapper.CompositeParameter

public class BitmapStructure
extends com.jniwrapper.Structure

This class represents BITMAP structure.


Field Summary
 
Fields inherited from class com.jniwrapper.Structure
i
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
BitmapStructure()
           
BitmapStructure(BitmapStructure that)
           
BitmapStructure(long width, long height, long widthBytes, long planes, long bitsPixel)
           
 
Method Summary
 java.lang.Object clone()
          Returns copy of the BitmapStructure object
 long getBitmapHeight()
          Returns bitmap height in pixels.
 long getBitmapWidth()
          Returns bitmap width in pixels.
 long getBitmapWidthBytes()
          Return number of bytes in bitmap scan line.
 Handle getBits()
          Returns handle to bitmap field.
 long getBitsPixel()
          Returns bitmap color depth.
 long getPlanes()
          Returns bitmap color planes count.
 void setBitmapHeight(long height)
          Sets bitmap height in pixels.
 void setBitmapWidth(long width)
          Sets bitmap width in pixels.
 void setBitmapWidthBytes(long width)
          Sets number of bytes in bitmap scan line.
 void setBitsPixel(long count)
          Sets bitmap color depth (4,8,16 etc.)
 void setPlanes(long count)
          Sets bitmap color planes count.
 
Methods inherited from class com.jniwrapper.Structure
a, a, acceptIOPerformer, addMembers, computeLength, equals, getAlignmentRequirement, getDebugInfo, getFirstMemberSize, getLength, getMember, getMembers, getOffsets, init, init, initFrom, pop, push, read, setDataBuffer, write
 
Methods inherited from class com.jniwrapper.Parameter
, a, asReturnValue, b, dataBufferAssigned, getAlignedLength, getDataBuffer, getDataBufferOffset, hashCode, indent, read, read, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitmapStructure

public BitmapStructure()

BitmapStructure

public BitmapStructure(long width,
                       long height,
                       long widthBytes,
                       long planes,
                       long bitsPixel)

BitmapStructure

public BitmapStructure(BitmapStructure that)
Method Detail

setBitmapWidth

public void setBitmapWidth(long width)
Sets bitmap width in pixels.

Parameters:
width -

getBitmapWidth

public long getBitmapWidth()
Returns bitmap width in pixels.

Returns:
bitmap width in pixels

setBitmapHeight

public void setBitmapHeight(long height)
Sets bitmap height in pixels.

Parameters:
height -

getBitmapHeight

public long getBitmapHeight()
Returns bitmap height in pixels.

Returns:
bitmap height in pixels

setBitmapWidthBytes

public void setBitmapWidthBytes(long width)
Sets number of bytes in bitmap scan line.

Parameters:
width -

getBitmapWidthBytes

public long getBitmapWidthBytes()
Return number of bytes in bitmap scan line.

Returns:
bitmap scan line in bytes

setPlanes

public void setPlanes(long count)
Sets bitmap color planes count.

Parameters:
count - of color planes

getPlanes

public long getPlanes()
Returns bitmap color planes count.

Returns:
color planes count

setBitsPixel

public void setBitsPixel(long count)
Sets bitmap color depth (4,8,16 etc.)

Parameters:
count -

getBitsPixel

public long getBitsPixel()
Returns bitmap color depth.

Returns:
color depth

getBits

public Handle getBits()
Returns handle to bitmap field.

Returns:
handle to bitmap

clone

public java.lang.Object clone()
Returns copy of the BitmapStructure object

Overrides:
clone in class com.jniwrapper.Structure
Returns:
copy of the BitmapStructure object