PM Library classes

class 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:32
Author:
Dmitry A Steklenev
Version:
$Revision: 1.1 $

Contents

^ 
EntityInherited FromTypeScopeShort Description
PM2DImageconstructor public Constructs the bitmap image object.
PM2DImageconstructor publicConstructs the bitmap image object from another object.
operator =operator publicAssigns the value of one bitmap object to another.
handlemethod publicReturns the bitmap handle.
rectanglemethod publicReturns the bitmap rectangle.
boundmethod publicReturn the bounding rectangle for this image.
movemethod publicMoves image to another position.
drawmethod publicDraws the bitmap to the specific presentation space.

constructor PM2DImage

? ^  > 
Constructs the bitmap image object.

Load a 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:50
Params:
x Horizontal position of the bitmap.
y Vertical position of the bitmap.
res_id The identifier of the bitmap.
hmodule Module handle referencing a dynamic link library containing the resource or NULLHANDLE for the application's module.
Code:
public PM2DImage ( LONG x ,
LONG y ,
SHORT res_id ,
HMODULE hmodule )

constructor PM2DImage

? ^  < > 
Constructs the bitmap image object from another object.
Source:
pm_2dimage.h:53
Code:
public PM2DImage ( const PM2DImage & )

operator =

? ^  < > 
Assigns the value of one bitmap object to another.
Source:
pm_2dimage.h:55
Code:
public PM2DImage & operator = ( const PM2DImage & )

method handle

? ^  < > 
Returns the bitmap handle.
Source:
pm_2dimage.h:58
Code:
public HBITMAP2 handle ( ) const

method rectangle

? ^  < > 
Returns the bitmap rectangle.
Source:
pm_2dimage.h:61
Code:
public virtual PMRect rectangle ( ) const

method bound

? ^  < > 
Return the bounding rectangle for this image.
Source:
pm_2dimage.h:63
Code:
public virtual PMRect bound ( ) const

method move

? ^  < > 
Moves image to another position.
Source:
pm_2dimage.h:65
Code:
public virtual void move ( LONG x ,
LONG y )

method draw

? ^  < > 
Draws the bitmap to the specific presentation space.
Source:
pm_2dimage.h:68
Code:
public virtual void draw ( HPS hps )

Created Fri Aug 3 09:13:16 2012.
This documentation was generated automatically by
ccdoc v08r39 2003/02/27 bin_opt_emx_os2-2.30.
Click here to submit a bug report or feature request for ccdoc.
Click here to return to the top of the page.