Viscom Software Image Thumbnail CP ActiveX Control

Rotate Method

Description:   

Rotate the image clip at specifies index.

Usage:   

ImageThumbnailCP1.Rotate Parameter1, Parameter2

Return Value:

Return true if successful, otherwise return false.

Parameter:

Parameter1 - the index of clip. (Data Type: Integer)

Parameter2 - the value of rotate type. (Data Type: Integer)
0 - no rotation
1 - 90-degree rotation without flipping
2 - 180-degree rotation without flipping
3 - 270-degree rotation without flipping
4 - no rotation and a horizontal flip
5 - 90-degree rotation followed by a horizontal flip
6 - 180-degree rotation followed by a horizontal flip
7 - 270-degree rotation followed by a horizontal flip
8 - no rotation and a vertical flip
9 - 90-degree rotation followed by a vertical flip
10 - 180-degree rotation followed by a vertical flip
11 -270-degree rotation followed by a vertical flip
 

 

Example:   

Private Sub cmdRotate_Click()     

ImageThumbnailCP1.Rotate 0, 1  'rotate first image clip to 90 degreee

End Sub