Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » How to rotate PNG? Collapse All
Subject Author Date
Vladimir Klestinec Aug 7, 2008 - 9:37 AM

Hello,
I wonder if there is a way to rotate png image by angle? I want to make some kind of nonprogressing bar. My png file is now loaded by using resources and CExtLabel class.
Thank you

Technical Support Aug 7, 2008 - 1:23 PM

Prof-UIS does not implement image rotation algorithms. Such algorithms are simply not needed when displaying icons and painting skin parts. Some generic image rotation approaches are described here:

http://www.codeguru.com/cpp/g-m/gdi/article.php/c3693/
http://www.codeguru.com/vb/gen/vb_graphics/gdi/article.php/c10677/

You can use one of image manipulation libraries for rotating image surfaces:

http://freeimage.sourceforge.net/download.html
http://www.xdp.it/download.htm

You can more efficiently rotate images using one of the following GDI/GDI+ replacement libraries:

http://www.antigrain.com
http://www.cairographics.org

But really image output with rotation, scaling and any other kind of transformations/effects would be better and really more efficient if it will be implemented some hardware accelerated APIs such as DirectX or OpenGL.