×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    31

    Thumbs down How to call scale function to scale the image on the time of Drawing the Image.Help

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

    Code:
    CFbsBitmap* CTestAppView::ScaleDown(TInt newWidth, TInt newHeight)
    	{
    	TInt KNewImageWidth = newWidth;
    	TInt KNewImageHeight = newHeight;
    	
    
    	iScaler = CMdaBitmapScaler::NewL();
    
    	TRAPD(err,iScaler->ScaleL(*this,*iBitmap,TSize(KNewImageWidth,KNewImageHeight)));
    	//iScaler->ScaleL(*this,*iBitmap,TSize(100,100)
    	//iBmpScale->Scale(&iStatus, *iSrcBitmap, TSize(100,100));
    	//SetActive();
    
    	CActiveScheduler::Start();
    
    	if (err == KErrNone)
    		{
    		iConvertState = EConvertStateScaling;
    		}
    	
    	return iBitmap;
    	}

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: How to call scale function to scale the image on the time of Drawing the Image.He

    you could actually just define a smaller rectangle and draw the bigger image into it, then it would be scaled automatically. if you want to use CMdaBitmapScaler, you should really use Active object to get it working nicely.

Similar Threads

  1. It takes time to load image on incoming call
    By rahulsingh in forum Symbian Tools & SDKs
    Replies: 16
    Last Post: 2005-07-05, 08:24
  2. HELP: Mutable Image to Immutable Image?
    By rj_cybersilver in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2005-03-26, 09:58
  3. 7610 How To change time to answer before call diverts
    By bsides in forum General Development Questions
    Replies: 2
    Last Post: 2005-02-07, 23:42
  4. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31
  5. 3650 losing time on missed call log
    By antony.john in forum Symbian
    Replies: 0
    Last Post: 2003-10-05, 16:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×