ZennoLab Assemblies Documentation
ImageProcessingRotateFromFile Method (ZennoPoster)
Example 

Type: System.String

The file path of the image for processing.

Type: System.String

The save file path.

Type: System.Int32

An angle of the rotation.

Type: System.Int32

The image quality. The value from 0 to 100. Default value is 100.

Type: System.String

The Exif Tags for metadata of image. Default value is empty string. Each tag must be written from a new line. The format of data is follow: {TagName}|{TagValue}.

Performs rotation of the image from file.
Syntax
public static void ImageProcessingRotateFromFile( 
   string filePath,
   string savePath,
   int angle,
   int quality,
   string exif
)

Parameters

filePath

Type: System.String

The file path of the image for processing.

savePath

Type: System.String

The save file path.

angle

Type: System.Int32

An angle of the rotation.

quality

Type: System.Int32

The image quality. The value from 0 to 100. Default value is 100.

exif

Type: System.String

The Exif Tags for metadata of image. Default value is empty string. Each tag must be written from a new line. The format of data is follow: {TagName}|{TagValue}.

Remarks

The angle is specified in degrees.

If parameter of quality not in the range from 0 to 100 then this value will be changed to 100.

Example
The following example shows call the ImageProcessingRotateFromFile method.
// the rotation of image at 45 degrees
ZennoPoster.ImageProcessingRotateFromFile("C:\\ImageForResize.jpeg", "C:\\ResultImage.jpeg", 45);
// the rotation of image at 45 degrees
ZennoLab\CommandCenter\ZennoPoster::ImageProcessingRotateFromFile("C:\\ImageForResize.jpeg", "C:\\ResultImage.jpeg", 45);
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

ZennoPoster Class
ZennoPoster Members
ImageProcessingClearExifFromFile Method
ImageProcessingClearExifFromScreenshot Method
ImageProcessingClearExifFromUrl Method
ImageProcessingCropFromFile Method
ImageProcessingCropFromScreenshot Method
ImageProcessingCropFromUrl Method
ImageProcessingMirrorFromFile Method
ImageProcessingMirrorFromScreenshot Method
ImageProcessingMirrorFromUrl Method
ImageProcessingResizeFromFile Method
ImageProcessingResizeFromScreenshot Method
ImageProcessingResizeFromUrl Method
ImageProcessingRotateFromScreenshot Method
ImageProcessingRotateFromUrl Method
ImageProcessingUntreatedFromFile Method
ImageProcessingUntreatedFromScreenshot Method
ImageProcessingUntreatedFromUrl Method
ImageProcessingWaterMarkImageFromFile Method
ImageProcessingWaterMarkImageFromScreenshot Method
ImageProcessingWaterMarkImageFromUrl Method
ImageProcessingWaterMarkTextFromFile Method
ImageProcessingWaterMarkTextFromScreenshot Method
ImageProcessingWaterMarkTextFromUrl Method

Send Feedback