Drawing filled polygons

Hi, I need to draw color filled polygons in javame, but it seems, this isnt possible.I found only methods within the LowLevel API to draw triangles and rectangles filled.Have I to split my polygons to triangles to make them filled ?maybe someone can help me
[298 byte] By [Elfblood] at [2007-11-26 12:16:18]
# 1
No one ?
Elfblood at 2007-7-7 14:52:09 > top of Java-index,Archived Forums,Socket Programming...
# 2
yeah, it is possible.you can use the recursive triangulation algorithm or scanline algorithm.triangulation takes quite a lot of memory. I personally suggest scanline algorithm.
RiekeyLee at 2007-7-7 14:52:09 > top of Java-index,Archived Forums,Socket Programming...
# 3
aaawwhh, I see.But is this not to much for an mobile device ?I have to paint some Geographical Maps, there are lots of polygons in it...But Thx for the answer, I try to implement it.
Elfblood at 2007-7-7 14:52:09 > top of Java-index,Archived Forums,Socket Programming...
# 4
> I have to paint some Geographical Maps, there are> lots of polygons in it...Why bother with doing that stuff yourself. Just use SVG, and a decent SVG api like http://www.tinyline.com/svgt/ ! It will save you a lot of time, and give you a lot of extra possibilities.
deepspace at 2007-7-7 14:52:09 > top of Java-index,Archived Forums,Socket Programming...
# 5
oh, good point.never heard of this, but looks quite exactly what I need :)Message was edited by: Elfblood
Elfblood at 2007-7-7 14:52:09 > top of Java-index,Archived Forums,Socket Programming...