This is my 'ScaleDown' function to scale Jpeg . How to call this function on the time of drawing the image or simply, how can i use this function to scale from Draw Function .Here is my scale function.Help me....

CFbsBitmap* CTestAppView::ScaleDown(TInt newWidth, TInt newHeight)
	TInt KNewImageWidth = newWidth;
	TInt KNewImageHeight = newHeight;

	iScaler = CMdaBitmapScaler::NewL();

	//iBmpScale->Scale(&iStatus, *iSrcBitmap, TSize(100,100));


	if (err == KErrNone)
		iConvertState = EConvertStateScaling;
	return iBitmap;