ImageGear .NET v24.12 - Updated
Resize Method (ImGearAnnotatorRectangleController)




ImageGear24.Windows.Controls.Art Assembly > ImageGear.Windows.Controls Namespace > ImGearAnnotatorRectangleController Class : Resize Method
The mark being resized.
The new position of the point (in image pixels).
The mark controller data.
Method that is called when the mouse is used to resize a mark.
Syntax
'Declaration
 
Public Overrides Sub Resize( _
   ByVal mark As ImGearARTMark, _
   ByVal point As ImGearPoint, _
   ByVal markControllerData As ImGearAnnotatorMarkControllerData _
) 
'Usage
 
Dim instance As ImGearAnnotatorRectangleController
Dim mark As ImGearARTMark
Dim point As ImGearPoint
Dim markControllerData As ImGearAnnotatorMarkControllerData
 
instance.Resize(mark, point, markControllerData)
public override void Resize( 
   ImGearARTMark mark,
   ImGearPoint point,
   ImGearAnnotatorMarkControllerData markControllerData
)
public: void Resize( 
   ImGearARTMark* mark,
   ImGearPoint point,
   ImGearAnnotatorMarkControllerData* markControllerData
) override 
public:
void Resize( 
   ImGearARTMark^ mark,
   ImGearPoint point,
   ImGearAnnotatorMarkControllerData^ markControllerData
) override 

Parameters

mark
The mark being resized.
point
The new position of the point (in image pixels).
markControllerData
The mark controller data.
Remarks
The UpdateBounds method must be overridden to enable resizing a custom mark using the mouse. If the UpdateBounds method is overriden, then by default this method resizes the mark based on the point parameter and the markControllerData. For example, if the IsHoldingCtrl and IsHoldingShift properties of markControllerData are true, the aspect ratio and a fixed center point will be maintained when resizing the mark.
See Also

Reference

ImGearAnnotatorRectangleController Class
ImGearAnnotatorRectangleController Members