CodeCarvings.Piczard
GetSourceRectangle Method
See Also  Send Feedback
CodeCarvings.Piczard Namespace > ImageSelection Class : GetSourceRectangle Method

imageSize
The Size of the source image expressed in pixels.
Gets the coordinates (X/Y) and the size (Width/Height) of the selected portion of source image.

Syntax

Visual Basic (Declaration)  
Public Function GetSourceRectangle( _
   ByVal imageSize As Size _
) As Rectangle
C#  
public Rectangle GetSourceRectangle( 
   Size imageSize
)

Parameters

imageSize
The Size of the source image expressed in pixels.

Return Value

The ImageCrop.Rectangle recalculated so that it relates to the source image before the Transformation filter is applied.
If the ImageCrop.Rectangle is null, then this method returns a new Rectangle having coordinates X=0, Y=0 and the same size of the source image.

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.