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

📄 cpictureloader.h

📁 This package includes a 3-D game engine example application and a document describing the most impor
💻 H
字号:
    /*
    *
============================================================================
    *  Name     : CPictureLoader.h
    *  Part of  : Example3D
    *  Created  : 12/14/2003 by Forum Nokia
    *  Description:
    *     This is the project specification file for Example3D.
    *     Initial content was generated by Series 60 AppWizard.
    *
    *  Version  : 1.0.0
    *  Copyright: Forum Nokia
    *
============================================================================
    */

#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:

		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 + -