ZennoLab Assemblies Documentation
ImageProcessingCropFromUrl Method (ZennoPoster)
Example 

Type: System.String

The url of the image.

Type: System.String

The save file path.

Type: System.Int32

The indent from left border of the image.

Type: System.Int32

The indent from top border of the image.

Type: System.Int32

The width for cropping.

Type: System.Int32

The height for cropping.

Type: System.String

Units of dimension of the parameters. It can be "pixel" or "percent".

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 cropping of the image from url.
Syntax
public static void ImageProcessingCropFromUrl( 
   string url,
   string savePath,
   int leftBorder,
   int topBorder,
   int cropWidth,
   int cropHeight,
   string units,
   int quality,
   string exif
)

Parameters

url

Type: System.String

The url of the image.

savePath

Type: System.String

The save file path.

leftBorder

Type: System.Int32

The indent from left border of the image.

topBorder

Type: System.Int32

The indent from top border of the image.

cropWidth

Type: System.Int32

The width for cropping.

cropHeight

Type: System.Int32

The height for cropping.

units

Type: System.String

Units of dimension of the parameters. It can be "pixel" or "percent".

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 default value of the units parameter is "pixel".

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 ImageProcessingCropFromUrl method.
// cropping image from url, the width and height in pixel
ZennoPoster.ImageProcessingCropFromUrl("someurl.com/image.php", "C:\\ResultImage.jpeg", 10, 10, 150, 250, "pixel");
 
// cropping image from url, the width and height in percentage
ZennoPoster.ImageProcessingCropFromUrl("someurl.com/image.php", "C:\\ResultImage.jpeg", 10, 10, 150, 250, "percent");
// cropping image from url, the width and height in pixel
ZennoLab\CommandCenter\ZennoPoster::ImageProcessingCropFromUrl("someurl.com/image.php", "C:\\ResultImage.jpeg", 10, 10, 150, 250, "pixel");
 
// cropping image from url, the width and height in percentage
ZennoLab\CommandCenter\ZennoPoster::ImageProcessingCropFromUrl("someurl.com/image.php", "C:\\ResultImage.jpeg", 10, 10, 150, 250, "percent");
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
ImageProcessingMirrorFromFile Method
ImageProcessingMirrorFromScreenshot Method
ImageProcessingMirrorFromUrl Method
ImageProcessingResizeFromFile Method
ImageProcessingResizeFromScreenshot Method
ImageProcessingResizeFromUrl Method
ImageProcessingRotateFromFile 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