xsi_image.h Source File
 
 
 
xsi_image.h
Go to the documentation of this file.
00001 //*****************************************************************************
00011 //*****************************************************************************
00012 
00013 #if (_MSC_VER > 1000) || defined(SGI_COMPILER)
00014 #pragma once
00015 #endif
00016 
00017 #ifndef __XSIIMAGE_H__
00018 #define __XSIIMAGE_H__
00019 #include <xsi_base.h>
00020 
00021 namespace XSI {
00022 
00023 struct CColor ;
00024 
00025 //*****************************************************************************
00085 //*****************************************************************************
00086 class SICPPSDKDECL Image : public CBase
00087 {
00088 public:
00090         Image();
00091 
00093         ~Image();
00094 
00098         Image(const CRef& in_ref);
00099 
00103         Image(const Image& in_obj);
00104 
00109         bool IsA( siClassID in_ClassID) const;
00110 
00114         siClassID GetClassID() const;
00115 
00121         Image& operator=(const Image& in_obj);
00122 
00128         Image& operator=(const CRef& in_ref);
00129 
00137         CStatus GetPixelValue( float in_X, float in_Y, CColor & out_Pixels ) const;
00138 
00150         CStatus GetPixelValue(
00151                                 float in_X,
00152                                 float in_Y,
00153                                 unsigned char & out_R,
00154                                 unsigned char & out_G,
00155                                 unsigned char & out_B,
00156                                 unsigned char & out_A ) const;
00157 
00160         LONG GetResX() const;
00161 
00164         LONG GetResY() const;
00165 
00169         LONG GetNumChannels() const ;
00170 
00174         LONG GetChannelSize() const ;
00175 
00183         const void * GetPixelArray() const ;
00184 
00188         LONG GetPixelArraySize() const ;
00189 
00190         private:
00191         Image * operator&() const;
00192         Image * operator&();
00193 };
00194 
00195 };
00196 
00197 #endif // __XSIIMAGE_H__