It looks like j2me does not implement WIDTH parameter for drawing lines!
Does it exist any workaround? Any additional library?!?
My program draws a map, and line color is essential for the user: I can't just draw 1-pixel wide lines!
It looks like j2me does not implement WIDTH parameter for drawing lines!
Does it exist any workaround? Any additional library?!?
My program draws a map, and line color is essential for the user: I can't just draw 1-pixel wide lines!
Hi,
I dont know any additional lib if it is, but work around sure have..
Just draw a rectangle, fill a color in, does it make a line bigger.......
cheers
---Knowledge sharing is power---
Hans
hi,
if ur app heavily uses different type of line, i think u should develop ur own libs.
I never try this in J2ME, but did it in very beging programming language (Pascal), a thicker line is in fact a set of thin line.
a line is a set of point.
To draw a oblique line, u have to know its Orbit, like a parabol y= x*x, a line y=ax+b...etc
That's my idea. I really hope it can help u.
Cheer
---Knowledge sharing is power---
Hans
Does anybody know if Nokia UI API can help on this topic?
Or maybe there is a (free) j2me implementation of SVG images?
Hi cassioli,
if you want to use SVG in Java ME, you should take a look at JSR 226:
http://www.forum.nokia.com/document/...w-summary.html
Anyway, if it's only for line-drawing, you'll surely get better results (e.g.: performances) by implementing your own classes/methods that do this on standard Graphics objects.
Pit
For Nokia phones, you can look at the detailed specs of each model here:
http://www.forum.nokia.com/devices/matrix_all_1.html
Also, you could try to take a look at the J2mePolish interactive database, filtering devices by JSR 226.
Pit