/***************************************************************************
 *                          Zanoza Modeler v2.x                            *
 *      This is unpublished propietary source code of Zanoza Software.     *
 *      The copyright notice does not evidence any actual or intended      *
 *                    publication of such source code.                     *
 *                                                                         *
 *                Copyright (c) 2002-2008 Zanoza Software.                 *
 *                                                                         *
 *                        All rights reserved.                             *
 ***************************************************************************
 *--------------------------------------------------------------------------
 * @author:   Oleg Melashenko
 *--------------------------------------------------------------------------
 * @purpose:  Declaration of the class IImage
 *--------------------------------------------------------------------------
 * @created: Saturday, September 21, 2002 10:51:26
 */

#if !defined(IImage_h_included)
#define IImage_h_included
//forward declaration of this class might require
namespace core
{ namespace ui
  { class IImage; class CImageCol; }; };
#include <zmodeler.h>
#include <core/ui/uiTypes.h>
#include <core/ui/IBasicTransform.h>


namespace core
{
  namespace ui
  {
    
    class IImage : public core::ui::IBasicTransform
    {
    public:
      virtual ZRESULT fromResource(DWORD dwResourceID)=0;
      virtual ZRESULT getSize(long& cx, long& cy)=0;
      virtual ZRESULT getBitCount(long& nBits)=0;
      virtual ZRESULT getBitmap(HBITMAP& hBitmap)=0;
      virtual ZRESULT getIcon(HICON& hIcon)=0;
      /* supplies image as Gdiplus::Image. */
      virtual ZRESULT getImage(ZOpaque** ppImage)=0;
    
    };//class IImage
    
    //
    // collection template
    //
    class CImageCol : public ZUnknown,
        public ZIntrCollection<IImage>
    {
    public:
      INTERFACE_FUNCTIONS_DEFAULT(CImageCol)
    };//class CImageCol
  };//ui
};//core

#endif
