CodeCarvings.Piczard
GetAdjustedRectangle(Rectangle,Boolean,Size,Boolean,Boolean) Method
See Also  Send Feedback
CodeCarvings.Piczard Namespace > ImageTransformation Class > GetAdjustedRectangle Method : GetAdjustedRectangle(Rectangle,Boolean,Size,Boolean,Boolean) 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.
applyResizeFactor
If true then consider ResizeFactor during the recalculation of the Rectangle.
applyRotateFlip
If true then consider RotationAngle, FlipH and FlipV during the recalculation of the Rectangle.
Recalculates a Rectangle (X/Y coordinates and Size) by applying the specified 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, _
   ByVal applyResizeFactor As Boolean, _
   ByVal applyRotateFlip As Boolean _
) As Rectangle
C#  
public Rectangle GetAdjustedRectangle( 
   Rectangle rectangle,
   bool backward,
   Size imageSize,
   bool applyResizeFactor,
   bool applyRotateFlip
)

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.
applyResizeFactor
If true then consider ResizeFactor during the recalculation of the Rectangle.
applyRotateFlip
If true then consider RotationAngle, FlipH and FlipV during the recalculation of the Rectangle.

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.