| ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > ZennoPoster Class : ImageProcessingCropFromScreenshot Method |
Type: System.Int32
The port of the instance.
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".
public static void ImageProcessingCropFromScreenshot( int instancePort, string savePath, int leftBorder, int topBorder, int cropWidth, int cropHeight, string units )
Type: System.Int32
The port of the instance.
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".
// cropping image from screenshot, the width and height in pixel ZennoPoster.ImageProcessingCropFromScreenshot(instance.Port, "C:\\ResultImage.jpeg", 10, 10, 150, 250, "pixel"); // cropping image from screenshot, the width and height in percentage ZennoPoster.ImageProcessingCropFromScreenshot(instance.Port, "C:\\ResultImage.jpeg", 10, 10, 150, 250, "percent");
// cropping image from screenshot, the width and height in pixel ZennoLab\CommandCenter\ZennoPoster::ImageProcessingCropFromScreenshot($instance->Port, "C:\\ResultImage.jpeg", 10, 10, 150, 250, "pixel"); // cropping image from screenshot, the width and height in percentage ZennoLab\CommandCenter\ZennoPoster::ImageProcessingCropFromScreenshot(#instance->Port, "C:\\ResultImage.jpeg", 10, 10, 150, 250, "percent");
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.
ZennoPoster Class
ZennoPoster Members
ImageProcessingCropFromFile Method
ImageProcessingCropFromUrl 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
Instance Port Property
ImageProcessingMirrorFromFile Method
ImageProcessingMirrorFromScreenshot Method
ImageProcessingMirrorFromUrl Method