summaryrefslogtreecommitdiff
path: root/src/Aspect/Aspect_PixMap.cxx
blob: bd49109382d42e81765877f9144f0bfc5e3bf32d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
 
// File		Aspect_PixMap.cxx
// Created	14 October 1999
// Author	VKH
// Updated	GG IMP100701 Add the "depth" field and method
//		to the pixmap object.

//-Copyright	MatraDatavision 1991,1992,1999

//-Version

//
#include <Aspect_PixMap.ixx>

//-Constructor
////////////////////////////////////////////////////////////////////
Aspect_PixMap::Aspect_PixMap ( const Standard_Integer aWidth,
                               const Standard_Integer anHeight,
			       const Standard_Integer aDepth )
{
  myWidth = aWidth;
  myHeight = anHeight;
  myDepth = aDepth;
}

////////////////////////////////////////////////////////////
void Aspect_PixMap::Size ( Standard_Integer &aWidth,
                  Standard_Integer &anHeight ) const {
  aWidth = myWidth;
  anHeight = myHeight;
}

////////////////////////////////////////////////////////////
Standard_Integer Aspect_PixMap::Depth () const { 
  return myDepth;
}