?? cpictureloader.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
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -