Open CASCADE Technology 6.5.2
Public Member Functions | Protected Attributes
WNT_PixMap Class Reference

This class defines a windows bitmap

#include <WNT_PixMap.hxx>

Inheritance diagram for WNT_PixMap:
Inheritance graph
[legend]

Public Member Functions

 WNT_PixMap (const Handle< Aspect_Window > &aWindow, const Standard_Integer aWidth, const Standard_Integer anHeight, const Standard_Integer aCDepth=0)
 Warning! When <aDepth> is NULL , the pixmap is created
with the SAME depth than the window <aWindow>

virtual void Destroy ()
 Destroies the Bitmap

 ~WNT_PixMap ()
virtual Standard_Boolean Dump (const Standard_CString aFilename, const Standard_Real aGammaValue=1.0) const
 Dumps the Bitmap to an image file with
an optional gamma correction value
and returns TRUE if the dump occurs normaly.

virtual Quantity_Color PixelColor (const Standard_Integer theX, const Standard_Integer theY) const
 Returns the pixel color.

virtual Aspect_Handle PixmapID () const
 Returns the ID of the just created bitmap

Protected Attributes

Aspect_Handle myDC
Aspect_Handle myBitmap

Constructor & Destructor Documentation

WNT_PixMap::WNT_PixMap ( const Handle< Aspect_Window > &  aWindow,
const Standard_Integer  aWidth,
const Standard_Integer  anHeight,
const Standard_Integer  aCDepth = 0 
)
WNT_PixMap::~WNT_PixMap ( ) [inline]

Member Function Documentation

virtual void WNT_PixMap::Destroy ( ) [virtual]

Implements Aspect_PixMap.

virtual Standard_Boolean WNT_PixMap::Dump ( const Standard_CString  aFilename,
const Standard_Real  aGammaValue = 1.0 
) const [virtual]

Implements Aspect_PixMap.

virtual Quantity_Color WNT_PixMap::PixelColor ( const Standard_Integer  theX,
const Standard_Integer  theY 
) const [virtual]

Implements Aspect_PixMap.

virtual Aspect_Handle WNT_PixMap::PixmapID ( ) const [virtual]

Implements Aspect_PixMap.


Field Documentation


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines