The crop tool allows the user to select an area of the image to keep and then call CropToolInteraction.Crop() to apply the crop.

The selection can also be rotated so the image is rotated and then cropped.

In Crop Tool mode:

- User can resize crop box by dragging grips

- User can rotate crop by dragging outside grips

Namespace: HiComponents.IEvolution
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public class CropToolInteraction
Public Class CropToolInteraction
public ref class CropToolInteraction

Members

         
 All Members  Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
AllowMoving
True: The user can move the crop selection by clicking within the selection area
AllowResizing
True: The user can resize the crop selection by dragging the corner or side grips
AllowRotating
True: The user can rotate the crop selection by dragging outside the corner grips
AntialiasMode
Specifies the quality of a rotated crop. Default: Fast
Cancel()()()()
Clears the crop selection.
Crop()()()()
Crop the image to the selection.
DrawGuides
Displays guide lines on the horizontal and vertical thirds of the crop selection.
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
LockAspectRatio

Allows the crop selection to be locked to a specific ratio, e.g. 0.75 for a 4:3 image or 1.77 for a 16:9 image

If LockAspectRatio is -1, the aspect ratio is only locked when the user presses the ALT key

If LockAspectRatio is >0, ImageEn locks the selection to the specified aspect ratio

Note: By default, when dragging the side grips the aspect ratio is not enforced. Set SideGripsRespectLocks = true to force all grips to respect the ratio

LockHeight

Allows the height of the crop selection to be locked to a specific size. e.g. 200 pixels high.

Notes:

- Values refer to bitmap pixels, not a screen dimension

- Can be used independently of LockWidth

- if SizeLocksAreMinimums is True, then this value is a minimum only

- Has no effect if SelectionAspectRatio > 0 (unless SizeLocksAreMinimums is set)

LockWidth

Allows the width of the crop selection to be locked to a specific size. e.g. 200 pixels wide.

Notes:

- Values refer to bitmap pixels, not a screen dimension

- Can be used independently of LockHeight

- if SizeLocksAreMinimums is True, then this value is a minimum only

- Has no effect if SelectionAspectRatio > 0 (unless SizeLocksAreMinimums is set)

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Mode
Specifies the shape of cropping area.
Refresh()()()()
Undocumented
Selected
Returns true if a selection is active.
SideGripsRespectLocks
Determines whether the specified aspect ratio lock is enforced when dragging the side, top and bottom grips. If this property is not set then only the corner grips will respect the lock
SizeLocksAreMinimums
If included, then the specified LockWidth or LockHeight are treated as minimum values, i.e. the user can make the selection larger than the specified values, but not smaller
ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)

Inheritance Hierarchy

System..::..Object
  HiComponents.IEvolution..::..CropToolInteraction

See Also