Media_TRotate ( degrees )
Media_TRotate sets a rotation value in degrees. When you next call Media_TApply the image or images being modified will be rotated.
Parameter | Description |
---|---|
degrees | The degrees of clockwise rotation. |
The degree value is for clockwise rotation. You can set a negative value for counterclockwise rotation. For extremely precise rotations, you can define fractional degrees of rotation.
Activated by Media_TApply.
Returns
Empty string.
Examples
To rotate an image 90 degrees clockwise:
Set Field [ MyTable::Response ; Media_TClear ]
Set Field [ MyTable::Response ;
Media_TRotate ( 90 ) ]
Set Field [ MyTable::Picture Result;
Media_TApply ( MyTable::Picture 1 ) ]
To rotate an image approximately 33 1/3 degrees clockwise:
Set Field [ MyTable::Response ; Media_TClear ]
Set Field [ MyTable::Response ;
Media_TRotate ( 33.33 ) ]
Set Field [ MyTable::Picture Result;
Media_TApply ( MyTable::Picture 1 ) ]
To rotate an image 110 degrees counter clockwise:
Set Field [ MyTable::Response ; Media_TClear ]
Set Field [ MyTable::Response ;
Media_TRotate ( -110 ) ]
Set Field [ MyTable::Picture Result;
Media_TApply ( MyTable::Picture 1 ) ]
To rotate an image the number of degrees entered into a field named “Rotate”:
Set Field [ MyTable::Response ; Media_TClear ]
Set Field [ MyTable::Response ;
Media_TRotate ( MyTable::Rotate ) ]
Set Field [ MyTable::Picture Result;
Media_TApply ( MyTable::Picture 1 ) ]