CalculateCropRectangle(Size) Method
CodeCarvings.Piczard
CalculateCropRectangle(Size) Method
See Also  Send Feedback
CodeCarvings.Piczard Namespace > ImageSelection Class > CalculateCropRectangle Method : CalculateCropRectangle(Size) Method

sourceImageSize
The Size of the source image expressed in pixels.
Calculates the crop Rectangle (in case its value is null) using the default resolution (96 DPI).

Syntax

Visual Basic (Declaration)  
Public Overloads Sub CalculateCropRectangle( _
   ByVal sourceImageSize As Size _
) 
C#  
public void CalculateCropRectangle( 
   Size sourceImageSize
)

Parameters

sourceImageSize
The Size of the source image expressed in pixels.

Remarks

If the value of the Crop.Rectangle property is null then this method changes its value.
If the value of the Crop.Rectangle property is not null then this method do nothing.

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.