CodeCarvings.Piczard
ImageCrop Constructor(Generic Nullable,BackgroundColor)
See Also  Send Feedback
CodeCarvings.Piczard Namespace > ImageCrop Class > ImageCrop Constructor : ImageCrop Constructor(Generic Nullable,BackgroundColor)

rectangle

The coordinates and the size of the rectangular area to crop. If null the entire source image is cropped.

canvasColor
The color used to fill the eventual canvas area.
Initializes a new instance of the ImageCrop class and sets the crop rectangle; the specified color is used to fill the eventual canvas area.

Syntax

Visual Basic (Declaration)  
Public Function New( _
   ByVal rectangle As Nullable(Of Rectangle), _
   ByVal canvasColor As BackgroundColor _
)
C#  
public ImageCrop( 
   Nullable<Rectangle> rectangle,
   BackgroundColor canvasColor
)

Parameters

rectangle

The coordinates and the size of the rectangular area to crop. If null the entire source image is cropped.

canvasColor
The color used to fill the eventual canvas area.

Requirements

Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000

See Also

©2013 Sergio Turolla. All Rights Reserved.