PM2DImage

Extends PM2Drawable as public

2D PNG Image class.

The PM2DImage class accesses and manages PNG bitmap resources through reference-counting. Reference-counting allows the system to use one bitmap in multiple places. The library maintains the lifetime of this bitmap until all users are finished with it.

You can construct, destruct, copy, and assign objects of this class.


 * Source: pm_2dimage.h:28
 * Author: Dmitry A Steklenev
 * Version: 1.0

constructor PM2DImage
Constructs the bitmap image object.

Load a PNG bitmap image from the specified resource library with its specified bitmap identifier. If you have not already loaded the bitmap and you want load it from the default resource library, use this constructor.


 * Source: pm_2dimage.h:46


 * Params:

 public PM2DImage ( LONG x ,	           LONG y ,	            SHORT res_id ,	            HMODULE hmodule ) 
 * Code:

constructor PM2DImage
Constructs the bitmap image object from another object.


 * Source: pm_2dimage.h:49

public PM2DImage (const PM2DImage & )
 * Code:

operator =
Assigns the value of one bitmap object to another.


 * Source: pm_2dimage.h:51

public PM2DImage & operator = (const PM2DImage & )
 * Code:

method handle
Returns the bitmap handle.
 * Source: pm_2dimage.h:54

public HBITMAP2 handle const
 * Code:

method rectangle
Returns the bitmap rectangle. public virtual PMRect rectangle const
 * Source: pm_2dimage.h:57
 * Code:

method bound
Return the bounding rectangle for this image.

public virtual PMRect bound (	) const
 * Source: pm_2dimage.h:59
 * Code:

method move
Moves image to another position.

public virtual void move ( LONG x ,	                   LONG y )
 * Source: pm_2dimage.h:61
 * Code:

method draw
Draws the bitmap to the specific presentation space.


 * Source:pm_2dimage.h:64
 * Code:

public virtual void draw (HPS hps )