×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    7

    2 svg in 1 canvas?

    can i do this? i am making a gps app for 6110 Navigator and i want to have 2 svg on 1 canvas. the first svg is for the gui and the second one is for the map.. another question is where do i put the command listeners? on the canvas or on the SVGAnimator?

    other suggestions are welcome!!

  2. #2
    Registered User
    Join Date
    Nov 2006
    Posts
    9

    Re: 2 svg in 1 canvas?

    Hi, i'm writing my final thesis on an application like this. i went on to use SVGImage on a GameCanvas, with an extra Thread for incrementing the timeline of the SVGAnimations. In the paint method i render several SVGImages on top of each other.

  3. #3
    Registered User
    Join Date
    Dec 2006
    Posts
    30

    Re: 2 svg in 1 canvas?

    Hi there,

    Could you show your paint() method code??

    Thanks in advance

    Ed

  4. #4
    Registered User
    Join Date
    Nov 2006
    Posts
    9

    Re: 2 svg in 1 canvas?

    Just an exampel to paint two graphics (one semi transparent) on top of each other (both member variables of the class)

    Code:
    public void paint(Graphics g) 
    {
       sg.bindTarget(g); 
       sg.setTransparency(1.0f);
       sg.render(0, 0, svgImage);
       sg.setTransparency(0.7f);
       sg.render(0, 0, secondSvgImage);
       sg.releaseTarget(); 
    }
    EDIT:
    The Timeline of an SVGImage is changable through
    Code:
    this.svgImage.incrementTime(value);
    Last edited by steppi; 2007-10-08 at 13:00.

Similar Threads

  1. TinyLine SVG Player and SDK 1.8.2 released.
    By girow in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2005-03-10, 07:32
  2. TinyLine SVG Player and SDK 1.8.2 released.
    By girow in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2005-03-10, 07:31
  3. Major problem with delegation to Canvas
    By bartekn in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2003-10-08, 17:46
  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
  •  
×