Give Scaler the ability to draw by a rotation angle

2 posts / 0 new
Last post
loki1980
loki1980's picture
Offline
Mobile Conjurer
Joined: 15 Jun 2010
Posts:
Give Scaler the ability to draw by a rotation angle

Hello,

I believe that the Scaler is one of most helpful classes as far as drawing on multiple resolutions is concerned.
However, it is often needed to draw something by using the maDrawImageRegion in order to use the rotation angle.

I think it would be a good idea to implement that functionality to the scaler, or even better implement a draw function that takes as argument an arbitrary angle Smile

Please consider it guys... Thank you very much Smile

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Niklas Nummelin
niklas's picture
Offline
Mobile Wizard
Joined: 18 Dec 2007
Posts:

Arbitary rotation could be precalculated in the same way as with the scaling, but would make the precalculation a lot slower. To change so that MAUI::Scaler makes use of maDrawImageRegion and 90-degree rotation would be an easy fix though.

I added a feature request to the issue tracker: https://github.com/MoSync/MoSync

// Niklas