class PImageBase: public PSmartObject

A class representing an image.

Inheritance:


Public Methods

[more]PDIMENSION Width () const
Get the width of the image.
[more]PDIMENSION Height () const
Get the height of the image.
[more]PDim GetDimensions () const
Get the width and height of the image.
[more]virtual BOOL Write ( PFile & dwg )
Save the image into the specified file in a platform specific format.

Public

[more] New functions for class

Protected Fields

[more]PDim size
Dimensions of the image.

Protected Methods

[more] PImageBase ( PDIMENSION width, PDIMENSION height )
Create an image, this may be a pixel image or a set of drawing primitives in a "picture" (Metafile/PICT etc).


Inherited from PSmartObject:

Protected Fields

ounsigned referenceCount


Inherited from PObject:

Public

Run Time Type functions

Comparison functions

I/O functions

Miscellaneous functions


Documentation

A class representing an image. This may be either pixel images descended from PPixelBase or a picture images in the PPictBase class.

This is an abstract class and contains the common functionality of all image types. A common use for images is by the PMemoryCanvas class for drawing to off screen memory.

o PImageBase( PDIMENSION width, PDIMENSION height )
Create an image, this may be a pixel image or a set of drawing primitives in a "picture" (Metafile/PICT etc).
Parameters:
width - Width of the image.
height - Height of the image.

o New functions for class

oPDIMENSION Width() const
Get the width of the image.

Returns:
width.

oPDIMENSION Height() const
Get the height of the image.

Returns:
height.

oPDim GetDimensions() const
Get the width and height of the image.

Returns:
dimensions.

ovirtual BOOL Write( PFile & dwg )
Save the image into the specified file in a platform specific format. Thus, for MS-Windwos, a PPixelBase class would write a .BMP file.

Returns:
TRUE if written successfully.
Parameters:
dwg - File to write the image to.

oPDim size
Dimensions of the image.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.