Bitmap Class

Bitmap Class

This Package | All Packages

Image
  |
  +--Bitmap
public class Bitmap
extends Image
implements IPersistable

Implements a Windows bitmap as a WFC object.

Constructors
Name Description
Bitmap(int handle) Topic under construction.
Bitmap(int handle, boolean fOwned) Topic under construction.
Bitmap(int handle, int hpal, boolean fOwned) Topic under construction.
Bitmap(int width, int height) Topic under construction.
Bitmap(int nWidth, int nHeight, int nPlanes, int nBitsPerPixel, short lpvBits[]) Topic under construction.
Bitmap(String fileName) Topic under construction.
Bitmap(Class type, String resource) Topic under construction.
Bitmap(IDataStream stream) Topic under construction.
Bitmap(IStream stream) Topic under construction.
Bitmap(IPicture picture) Topic under construction.

Methods
Name Description
clone() Topic under construction.
cloneBitmap() Topic under construction.
copyHandle(int h) Retrieves a copy of the bitmap.
copyHandle() Retrieves a copy of the bitmap.
drawStretchTo(Graphics g, int x, int y, int width, int height, int rop) Draws this bitmap to the given DC and stretches it to the given width and height.
drawTo(Graphics g, int x, int y, int width, int height, int rop) Draws this bitmap to the given DC.
finalize() Topic under construction.
getDitheredBitmap(Color solid, Color dither) Topic under construction.
getExtension() Topic under construction.
getGraphics() Retrieves a Graphics object that you can use to paint to this image.
getHandle() Retrieves the handle to this bitmap.
getPalette() Topic under construction.
getPICTDESC() Topic under construction.
getSafeHandle(Bitmap i) Topic under construction.
getSize() Topic under construction.
getTransparentBitmap(boolean f3D) Topic under construction.
getTransparentBitmap(Color color) Topic under construction.
getTransparentColor() Topic under construction.
toString() Topic under construction.

Constructors

Bitmap.Bitmap

Syntax 1
public Bitmap( int handle );
Description

Topic under construction.



Syntax 2
public Bitmap( int handle, boolean fOwned );
Description

Topic under construction.



Syntax 3
public Bitmap( int handle, int hpal, boolean fOwned );
Description

Topic under construction.



Syntax 4
public Bitmap( int width, int height );
Description

Topic under construction.



Syntax 5
public Bitmap( int nWidth, int nHeight, int nPlanes, int nBitsPerPixel, short lpvBits[] );
Description

Topic under construction.



Syntax 6
public Bitmap( String fileName );
Description

Topic under construction.



Syntax 7
public Bitmap( Class type, String resource );
Description

Topic under construction.



Syntax 8
public Bitmap( IDataStream stream );
Description

Topic under construction.



Syntax 9
public Bitmap( IStream stream );
Description

Topic under construction.



Syntax 10
public Bitmap( IPicture picture );
Description

Topic under construction.

Methods

Bitmap.clone

Syntax
public Object clone();
Description

Topic under construction.

Bitmap.cloneBitmap

Syntax
public Bitmap cloneBitmap();
Description

Topic under construction.

Bitmap.copyHandle

Syntax 1
public static int copyHandle( int h );
Description

Retrieves a copy of the bitmap.



Syntax 2
public static int copyHandle();
Description

Retrieves a copy of the bitmap.

Bitmap.drawStretchTo

Syntax
protected void drawStretchTo( Graphics g, int x, int y, int width, int height, int rop );
Parameters
g
The HDC to draw to (supplied by Graphics).
x
The x-coordinate at which to start drawing.
y
The y-coordinate at which to start drawing.
width
The width to stretch the bitmap to.
height
The height to stretch the bitmap to.
rop
The ROP code.
Description

Draws this bitmap to the given DC and stretches it to the given width and height. This method is used by Graphics to draw any type of image.

Bitmap.drawTo

Syntax
protected void drawTo( Graphics g, int x, int y, int width, int height, int rop );
Parameters
g
The HDC to draw to (supplied by Graphics).
x
The x-coordinate at which to start drawing.
y
The y-coordinate at which to start drawing.
width
The width of the bitmap.
height
The height of the bitmap.
rop
The ROP code.
Description

Draws this bitmap to the given DC. This method is used by Graphics to draw any type of image.

Bitmap.finalize

Syntax
public void finalize();
Description

Topic under construction.

Bitmap.getDitheredBitmap

Syntax
public Bitmap getDitheredBitmap( Color solid, Color dither );
Description

Topic under construction.

Bitmap.getExtension

Syntax
public String getExtension();
Description

Topic under construction.

Bitmap.getGraphics

Syntax
public Graphics getGraphics();
Return Value

Returns a Graphics object.

Description

Retrieves a Graphics object that you can use to paint to this image. This method creates a Graphics object if none exists or returns the one that already exists.

Bitmap.getHandle

Syntax
public int getHandle();
Return Value

Returns the handle to this bitmap.

Description

Retrieves the handle to this bitmap.

Bitmap.getPalette

Syntax
public Palette getPalette();
Description

Topic under construction.

Bitmap.getPICTDESC

Syntax
public PICTDESC getPICTDESC();
Description

Topic under construction.

Bitmap.getSafeHandle

Syntax
public static final int getSafeHandle( Bitmap i );
Description

Topic under construction.

Bitmap.getSize

Syntax
public Point getSize();
Description

Topic under construction.

Bitmap.getTransparentBitmap

Syntax 1
public Bitmap getTransparentBitmap( boolean f3D );
Description

Topic under construction.



Syntax 2
public Bitmap getTransparentBitmap( Color color );
Description

Topic under construction.

Bitmap.getTransparentColor

Syntax
public Color getTransparentColor();
Description

Topic under construction.

Bitmap.toString

Syntax
public String toString();
Description

Topic under construction.