Description: This label explains about, how to bring the image in view.
Step1: Symbian supports MBM format for image. (Convet image to MBM format)
class : CFbsBitmap
Code:
Step1: Symbian supports MBM format for image. (Convet image to MBM format)
class : CFbsBitmap
Code:
//path & name of the MBM file _LIT(KMBMFileName1,"z:\\resource\\apps\\Example.mbm"); //Load the image CFbsBitmap* Bitmap = new (ELeave) CFbsBitmap; TInt Err = Bitmap->Load(KMBMFileName1, EMbmWinamp24bit); //Draw the image in 0,0 co-ordinates. TSize bmpSizeInPixels=Bitmap->SizeInPixels(); TSize bmpPieceSize(bmpSizeInPixels.iWidth/2, bmpSizeInPixels.iHeight/2); TRect bmpPieceRect(TPoint(0, 0), bmpPieceSize); gc.BitBlt(TPoint(0, 0), Bitmap, bmpPieceRect);
0 comments:
Post a Comment