×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Aug 2005
    Posts
    87

    drawing svg in own window

    Hi,

    i'v got a problem drawing svg in own window:

    I construct my windlow like this:

    Code:
    void Csvg_testAppView::ConstructL( const TRect& r )
    {
    	CreateWindowL();
    	
    	TFileName sAppIconsFile = CEikonEnv::Static()->EikAppUi()->Application()->BitmapStoreName();
    
    	AknIconUtils::CreateIconL( m_pBitmap, m_pMask, sAppIconsFile, 
    		EMbmSvg_testIcon1, 
    		EMbmSvg_testIcon1_mask );
    
    	TSize s1 = m_pBitmap->SizeInPixels();
    	User::LeaveIfError( AknIconUtils::SetSize( m_pBitmap, TSize( 16, 16 ) ) );
    	User::LeaveIfError( AknIconUtils::SetSize( m_pMask, TSize( 16, 16 ) ) );
    	TSize s2 = m_pBitmap->SizeInPixels();
    
    	SetRect( r );
    	ActivateL();
    }
    and draw this like:

    Code:
    void Csvg_testAppView::Draw( const TRect& /*r*/ ) const
    {
    	CWindowGc& gc = SystemGc();
    	gc.Clear( Rect() );
    	gc.DrawBitmap( TPoint( 100, 100 ), m_pBitmap );
    	
    }
    but there is nothing in the window.

    Of course icons are svg-tiny icons
    what can be the problem?

  2. #2
    Regular Contributor
    Join Date
    Aug 2005
    Posts
    87

    Re: drawing svg in own window

    Solved- i have to use BitBlt, not DrawBitmap

Similar Threads

  1. Drawing outside CCoecontrols Window area
    By krishnaramram in forum Symbian User Interface
    Replies: 3
    Last Post: 2006-10-13, 10:44
  2. About window views
    By thodime_guru in forum Symbian User Interface
    Replies: 1
    Last Post: 2004-06-17, 18:00
  3. Drawing on window that belongs to other app
    By Uszatek in forum Symbian
    Replies: 3
    Last Post: 2003-08-16, 10:19
  4. TinyLine SVG Minute Toolkit: Optimizing SVG for J2ME
    By girow in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2003-05-05, 18:44
  5. TinyLine SVG Minute Toolkit for J2ME: version 1.4 released
    By girow in forum Mobile Java General
    Replies: 0
    Last Post: 2003-05-05, 16:25

Posting Permissions

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