×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    15

    多边形(polygon)

    在J2ME中怎样画出一个有填充色的任意多边形?谁有这方面的算法或代码?谢谢!
    How can I darw a filled polygon with J2ME?

  2. #2
    Regular Contributor
    Join Date
    Aug 2003
    Location
    uk
    Posts
    232
    Either write you own method, to do this:

    Or use the nokia extension in: DirectGraphics

    void drawPolygon(int[] xPoints, int xOffset, int[] yPoints, int yOffset, int nPoints, int argbColor);

    Probably won't be very fast though either way.

    Better bet might be to have a look for some of the 3D engines people have already created for phones.

    Alex

Posting Permissions

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