⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cpictureloader.h

📁 Symbian平台下的一个3D赛车游戏源码
💻 H
字号:
   /*
============================================================================
    * Name : CPictureLoader.h
    * Part of : Example3D
    * Description : Definition of CPictureLoader
    * Copyright (c) 2005 Nokia Corporation
============================================================================
    */

#ifndef __CPICTURELOADER_H__
#define __CPICTURELOADER_H__


// INCLUDES
#include <e32base.h>
#include <MdaImageConverter.h>
#include "TBitmap.h"


// CLASS DECLARATION

/**
*  CPictureLoader can load picture types
*  supported by Symbian's CMdaImageFileToBitmapUtility
*  for example .BMP, .GIF and .JPG
*  Pictures are saved to TBitmap type bitmaps
*/

class CPictureLoader
	: public CBase
	, public MMdaImageUtilObserver
	{
	public:

		/// Two-phased constructor
		static CPictureLoader* NewL();

		/// Destructor
		~CPictureLoader();

	private:

		/// Second-phase constructor
		void ConstructL();

		/// Default constructor
		CPictureLoader();

	public:	// New methods:

		/// Loads picture with given filename
		/// This method can leave if any error occures in load
		/// Application path is automatically added to filename
		/// @param aFileName file name without path
		/// @param aMode color mode to load to ( EColor4K, EColor64K )
		/// @return TBitmap type bitmap
		TBitmap LoadL( const TFileName& aFileName, TDisplayMode aMode );

	private: // MMdaImageUtilObserver
		
		void MiuoConvertComplete( TInt aError );
		void MiuoCreateComplete( TInt aError );
		void MiuoOpenComplete( TInt aError );

	private:
        
        CActiveSchedulerWait iWait;
		TInt		iStatus;	// contains loading and conversion error status
		TFileName	iPath;		// contains application's path
	};


#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -