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

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

Syntax

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

Parameters

sourceImageSize
The Size of the source image expressed in pixels.
outputResolution
The output image resolution (DPI).

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.