Integration of OCCT 6.5.0 from SVN
[occt.git] / src / Aspect / Aspect_PixMap.cxx
1  
2 // File         Aspect_PixMap.cxx
3 // Created      14 October 1999
4 // Author       VKH
5 // Updated      GG IMP100701 Add the "depth" field and method
6 //              to the pixmap object.
7
8 //-Copyright    MatraDatavision 1991,1992,1999
9
10 //-Version
11
12 //
13 #include <Aspect_PixMap.ixx>
14
15 //-Constructor
16 ////////////////////////////////////////////////////////////////////
17 Aspect_PixMap::Aspect_PixMap ( const Standard_Integer aWidth,
18                                const Standard_Integer anHeight,
19                                const Standard_Integer aDepth )
20 {
21   myWidth = aWidth;
22   myHeight = anHeight;
23   myDepth = aDepth;
24 }
25
26 ////////////////////////////////////////////////////////////
27 void Aspect_PixMap::Size ( Standard_Integer &aWidth,
28                   Standard_Integer &anHeight ) const {
29   aWidth = myWidth;
30   anHeight = myHeight;
31 }
32
33 ////////////////////////////////////////////////////////////
34 Standard_Integer Aspect_PixMap::Depth () const { 
35   return myDepth;
36 }
37