CodeCarvings.Piczard
GetAdjustedRectangle(Rectangle,Boolean,Size) Method
See Also  Send Feedback
CodeCarvings.Piczard Namespace > ImageTransformation Class > GetAdjustedRectangle Method : GetAdjustedRectangle(Rectangle,Boolean,Size) Method

rectangle
The Rectangle to recalculate.
backward
If true then parameters are applied backwards (e.g. if RotationAngle is 90 clockwise, then original Rectangle is rotated of 90 degrees counterclockwise).
imageSize
The Size of the source image expressed in pixels.
Recalculates a Rectangle (X/Y coordinates and Size) by applying all the parameters of the current ImageTransformation object.

Syntax

Visual Basic (Declaration)  
Public Overloads Function GetAdjustedRectangle( _
   ByVal rectangle As Rectangle, _
   ByVal backward As Boolean, _
   ByVal imageSize As Size _
) As Rectangle
C#  
public Rectangle GetAdjustedRectangle( 
   Rectangle rectangle,
   bool backward,
   Size imageSize
)

Parameters

rectangle
The Rectangle to recalculate.
backward
If true then parameters are applied backwards (e.g. if RotationAngle is 90 clockwise, then original Rectangle is rotated of 90 degrees counterclockwise).
imageSize
The Size of the source image expressed in pixels.

Return Value

The recalculated Rectangle.

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.