// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _WNT_PixMap_HeaderFile #define _WNT_PixMap_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_WNT_PixMap_HeaderFile #include #endif #ifndef _Aspect_Handle_HeaderFile #include #endif #ifndef _Handle_Aspect_Window_HeaderFile #include #endif #ifndef _Aspect_PixMap_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Standard_CString_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif class Aspect_Window; class Aspect_PixmapDefinitionError; class Aspect_PixmapError; class Quantity_Color; //! This class defines a windows bitmap
class WNT_PixMap : public Aspect_PixMap { public: //! Warning! When is NULL , the pixmap is created
//! with the SAME depth than the window
Standard_EXPORT WNT_PixMap(const Handle(Aspect_Window)& aWindow,const Standard_Integer aWidth,const Standard_Integer anHeight,const Standard_Integer aCDepth = 0); //! Destroies the Bitmap
Standard_EXPORT virtual void Destroy() ; ~WNT_PixMap() { Destroy(); } //! Dumps the Bitmap to an image file with
//! an optional gamma correction value
//! and returns TRUE if the dump occurs normaly.
Standard_EXPORT virtual Standard_Boolean Dump(const Standard_CString aFilename,const Standard_Real aGammaValue = 1.0) const; //! Returns the pixel color.
Standard_EXPORT virtual Quantity_Color PixelColor(const Standard_Integer theX,const Standard_Integer theY) const; //! Returns the ID of the just created bitmap
Standard_EXPORT virtual Aspect_Handle PixmapID() const; DEFINE_STANDARD_RTTI(WNT_PixMap) protected: Aspect_Handle myDC; Aspect_Handle myBitmap; private: Standard_EXPORT Standard_Integer PreferedDepth(const Handle(Aspect_Window)& aWindow,const Standard_Integer aDepth) const; Handle_Aspect_Window myWND; }; // other Inline functions and methods (like "C++: function call" methods) #endif