blob: 9cb9fa1d681c2f7d48db3233fdb5a78f5b4d5ccd (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
// 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 _Image_ColorImage_HeaderFile
#define _Image_ColorImage_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_Image_ColorImage_HeaderFile
#include <Handle_Image_ColorImage.hxx>
#endif
#ifndef _Image_DColorImage_HeaderFile
#include <Image_DColorImage.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Handle_Aspect_GenericColorMap_HeaderFile
#include <Handle_Aspect_GenericColorMap.hxx>
#endif
#ifndef _Image_TypeOfImage_HeaderFile
#include <Image_TypeOfImage.hxx>
#endif
#ifndef _Handle_Image_Image_HeaderFile
#include <Handle_Image_Image.hxx>
#endif
class Aspect_ColorPixel;
class Aspect_GenericColorMap;
class Quantity_Color;
class Image_Image;
//! A ColorImage is a DColorImage with specific method. <br>
//! Each Pixel in the Image ,as a ColorPixel <br>
//! from Aspect, can be use directly as a Color. <br>
//! A ColorImage is also called a "true color image". <br>
class Image_ColorImage : public Image_DColorImage {
public:
//! Create a ColorImage object. <br>
//! The default Background Pixel is set to Black . <br>
//! All the Image is initialised with Background Pixel <br>
Standard_EXPORT Image_ColorImage(const Standard_Integer x,const Standard_Integer y,const Standard_Integer dx,const Standard_Integer dy);
//! Create a ColorImage object and set the Background Pixel. <br>
//! All the Image is initialised with Background Pixel <br>
Standard_EXPORT Image_ColorImage(const Standard_Integer x,const Standard_Integer y,const Standard_Integer dx,const Standard_Integer dy,const Aspect_ColorPixel& BackPixel);
//! Create a GenericColorMap object with the best ColorMap <br>
//! of a particular size to use in Dithering method . <br>
//! The best ColorMap is defined to be the one that contains as <br>
//! many as possible of the most frequently used colors. <br>
Standard_EXPORT Handle_Aspect_GenericColorMap ChooseColorMap(const Standard_Integer aSize) const;
//! Returns the Image Type. <br>
Standard_EXPORT Image_TypeOfImage Type() const;
//! Returns the Pixel Color . <br>
Standard_EXPORT const Quantity_Color& PixelColor(const Standard_Integer X,const Standard_Integer Y) const;
//! Duplicates a Image. <br>
Standard_EXPORT Handle_Image_Image Dup() const;
DEFINE_STANDARD_RTTI(Image_ColorImage)
protected:
private:
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|