×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    19

    N95 svg image in black frame

    Hi!

    There is an svg image wich is displayed on E65, N73 correctly, but on N95 is in black rect, like when there is no mask image at bmp images.

    I tried loading it both ways:
    Code:
    TRAP(err,iLogo = AknIconUtils::CreateIconL( KZMBMname, 
    EMbmApplogo ));
    TRAP(err, AknIconUtils::CreateIconL( iLogo, iLogoMask, KZMBMname, EMbmApplogo, EMbmApplogo_mask));
    And displaying:
    Code:
    gc.BitBlt(pos, iLogo);
    gc.BitBltMasked( pos, iLogo, rect, iLogoMask, ETrue );
    And generating it:
    Code:
    mifconv $(TARGETDIR)\tmplayer.mif /H..\inc\app.mbg \
    		/c32,1 $(ICONDIR)\logo.svg
    mifconv $(TARGETDIR)\tmplayer.mif /H..\inc\app.mbg \
    		/c32,8 $(ICONDIR)\logo.svg
    mifconv $(TARGETDIR)\tmplayer.mif /H..\inc\app.mbg \
    		/c32 $(ICONDIR)\logo.svg
    Any ideas?
    Thanks for your help!
    pka

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

    Re: N95 svg image in black frame

    Check that you have uset excatly correct size for both mask & image when utilizing the SetSize. Even though the Gc drawing can scale the image, it fails to do it properly with OS 9.2 devices, one way to get rid of the problem is to check the size right before drawing, and if the image size is different than the target, then either re-size the image or arjust the target area before drawing.

  3. #3
    Registered User
    Join Date
    Dec 2007
    Posts
    19

    Re: N95 svg image in black frame

    If I use icons from AVKON it works even on hardware, but if I try our own image it fails...
    What size do you mean? The size in the SetSize and rect where it draw should be equal?

    Thanks
    pka

  4. #4
    Registered User
    Join Date
    Dec 2007
    Posts
    19

    Thumbs up Re: N95 svg image in black frame

    You were right! It started to work with setting the corect size even to the mask file.

    Thanks!
    pka

Similar Threads

  1. Is MIDP2.0 over Symbian OS slow?
    By epolitakis in forum Mobile Java Games
    Replies: 7
    Last Post: 2007-03-16, 09:32
  2. Opening a JPEG Image
    By ummarbhutta in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2007-02-15, 06:34
  3. how to cut some part of Image
    By mshouab in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2006-08-04, 09:05
  4. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31
  5. 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

Posting Permissions

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