int ViewSetRotate(int vw, int degrees);
Rotates a View by the specified number of degrees.
Return Value
Returns zero if function fails.
Parameters
vw View handle returned from ViewAdd().
degrees Number of degrees by which to rotate the image. Positive values rotate clockwise; negative values rotate counter-clockwise.
Remarks
The ViewSetRotate() function rotates the image contained in the view. This function will rotate the image based on its original size and will not scale the image. If ViewSetSize() is called prior to a call to ViewSetRotate() then ViewSetRotate() will scale the image back to its original size.
Availability
Available in DragonFireSDK 1.0 and later.
Example
#include "DragonFireSDK.h"
void AppMain() { int MyImage = ImageAdd("Card01.png"); int MyView = ViewAdd(MyImage, 100, 100); ViewSetRotate(MyView, 45); }
void AppExit() {
}
void OnTimer() {
} |