EffectRotation
EffectRotation rotates the image part with given radius through given
angle (-ve clock wise direction) Can be used to rotate scanned images or
as an effect. The unaffected space of the frame can be painted with fill
color or original image retained. The angle, coordinates of center, radius
can be varied linearly during effect.
RGB32, RGB24 and YV12 color formats only are supported at this time.
Details of parameters
Description |
Name |
Type |
Limits |
Default |
clip |
|
clip |
|
none |
Effect start frame number |
sf |
Integer |
within clip |
first frame |
Effect end frame number |
ef |
Integer |
within clip |
last frame |
Initial radius of image to be rotated |
ir |
integer |
1 or more |
half of frame diagonal |
initial angle of rotation in degrees |
id |
float |
-360 to 360 |
90 |
initial center x coordinate |
ix |
integer |
in frame |
mid width |
initial center y coordinate |
iy |
integer |
in frame |
mid height |
Fill color |
cc |
integer |
rrggbb format. If -1 then original image retained |
-1 |
final radius of image to be rotated |
fr |
integer |
1 or more |
ir |
final angle of rotation in degrees |
fd |
float |
-360 to 360 |
id |
final center x coordinate |
fx |
integer |
in frame |
ix |
final center y coordinate |
fy |
integer |
in frame |
iy |
#Usage examples:-
EffectRotation(last,51,150,120, 20,300,200,$7f5e48,100,-50,0,100)
For frame centered full frame using defaults :
EffectRotation((last,51,150)
Image with effect :