Discussion Board

Results 1 to 3 of 3

Thread: midlet canvas

  1. #1
    Registered User sktniran's Avatar
    Join Date
    Oct 2010
    Posts
    27
    how can i increase draw line width in j2me while drawing line in midlet canvas?

  2. #2
    Super Contributor Maveric's Avatar
    Join Date
    May 2008
    Location
    Helsinki, Finland
    Posts
    1,102
    Hi!

    Lines you draw are 1 pixel thick. You need to draw adjacent lines.

    Here is a good article about these things:

    http://www.ibm.com/developerworks/ja.../section3.html

    Best Regards,
    Marko
    [FONT="Comic Sans MS"][COLOR="Blue"][/COLOR][I]Marko Lumivuori
    Technical Support
    +358 40 8019330
    [email]marko.lumivuori@nokia.com[/email][/I][/FONT]

  3. #3
    Nokia Developer Champion raj_J2ME's Avatar
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,314
    There is no API available to draw the wider lines as per the need, rather you need to draw the parallel lines to the first one.
    This is how you can draw the bold line on the Y axis...please check the same.
    PHP Code:
            g.setStrokeStyle(Graphics.SOLID);
            
    g.drawLine(202420height 20);
            
    g.drawLine(202520height 19);
            
    g.drawLine(202620height 18); 
    Height is stand for the canvas height.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. from canvas to midlet
    By clydening in forum Mobile Java General
    Replies: 4
    Last Post: 2010-04-16, 05:40
  2. List and keys/ midlet canvas problem
    By nuker85 in forum Mobile Java General
    Replies: 0
    Last Post: 2007-07-18, 13:18
  3. how to add canvas in form in midlet
    By mathi77in in forum Mobile Java General
    Replies: 1
    Last Post: 2005-07-13, 07:50
  4. Strange MIDlet slowdown when use GameCanvas instead Canvas
    By alexey_kr in forum Mobile Java General
    Replies: 1
    Last Post: 2005-05-06, 15:26
  5. Canvas versus MIDlet
    By docaoimh in forum Mobile Java General
    Replies: 0
    Last Post: 2004-07-14, 14:20

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved