Skip to main content

Painter Rotate

Please note these forums are being decommissioned and use the new and improved forums at
2 replies [Last post]
Joined: 2011-06-30


I want to write a string in 90 degree angle but i get an error "Affine unsupported"

Anyone got any idea why it wont work;

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-11-07

MIDP doesn't support affine transform although other ports do (e.g. the SE port and some others), hence no rotation etc.

To rotate text draw it on a square mutable image and rotate the image 90 degrees, you would probably need to draw the background color etc. too since MIDP's mutable images don't support transparency either (unless you use the modifyAlpha feature we provide which has some issues).

Joined: 2008-10-29


see It is not implemented (only for images). In case you are using the LWUIT MIDP port it is not implemented there either (again only for images).

AFAIK if you want to rotate text in MIDP it gets tricky. The Graphic class there doesn't support that. In LWUIT you need would need to override the paint method of your TextArea/Field to call a custom drawTextArea which makes then usage of the following trick

Looking forward to other suggestions.