cobazet
cobazet

Reputation: 61

How to draw in J2ME with float or double point?

I draw in J2ME with Canvas, but graphics support only integer. So how can I draw with float or double point ?

Upvotes: 1

Views: 275

Answers (1)

karim
karim

Reputation: 15589

convert your points to relative integer. or, if your double points is 0<= points<1, then, get the screen size say, width and height, then x = xx * width and y = yy * height

Upvotes: 2

Related Questions