The CropImage type exposes the following members.

Constructors

  Name Description
Public method CropImage
Initializes a new instance of the CropImage class

Methods

  Name Description
Public method BindData
Bind data
Protected method GetUploadDir
Gets upload directory
Protected method GetUpScaledCropSize
Gets upscaled size of a desired crop area.
Protected method GetUpScaledImageCenter
Finds center of an image based on upscaled crop size.
Protected method GetUpScaledImageCropArea
Calculates crop area size based on upscaled crop size.
Protected method OnCancel
Triggers cancel resize events
Protected method OnImageResized
Triggers image resized event
Protected method OnInit (Overrides UserControlBaseOnInit(EventArgs).)
Protected method OnLoad (Overrides Control..::..OnLoad(EventArgs).)
Protected method OnPreRender (Overrides Control..::..OnPreRender(EventArgs).)
Protected method ParseClientData
Parses client size data.
Protected method SetClientSizeInfo
Sets client size information
Protected method SetupProvider
Sets up FileContentProvider

Extension Methods

  Name Description
Public Extension Method ConvertTo(Type) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, TypeConverter) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, Boolean) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, TypeConverter, Boolean) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo<(Of <<'(T>)>>)()()()() Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo<(Of <<'(T>)>>)(TypeConverter) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method GetCurrentStackTrace
Gets current stack trace information.
(Defined by ObjectExtension.)
Public Extension Method GetDebugInformation
Gets the debug information for currently executing code.
(Defined by ObjectExtension.)
Public Extension Method GetExecutingMethodName
Gets the executing method name.
(Defined by ObjectExtension.)
Public Extension Method GetPagerTemplate
Gets pager template.
(Defined by ControlExtension.)
Public Extension Method GetPropertyType
Gets a property type.
(Defined by ObjectExtension.)
Public Extension Method GetPropertyValue
Gets a property or field value from the object (Dot notation enabled).
(Defined by ObjectExtension.)
Public Extension Method PropertyExists
Check if property exists.
(Defined by ObjectExtension.)
Public Extension Method SetPropertyValue
Sets a property or field value to the object (Dot notation enabled).
(Defined by ObjectExtension.)

Fields

  Name Description
Public field _postedFile
Protected field btnCancel
btnCancel control.
Protected field btnCrop
btnCrop control.
Protected field imgCrop
imgCrop control.
Protected field imgCropH
imgCropH control.
Protected field imgCropW
imgCropW control.
Protected field imgCropX
imgCropX control.
Protected field imgCropY
imgCropY control.

Properties

  Name Description
Public property AllowSelectOnCrop
Gets or sets the value indicating if new crop selection is enabled on crop control.
Public property BackgroundOpacity
Gets or sets the background opacity for crop control.
Public property BoxHeight
Gets or sets the maximum height of cropping area.
Public property BoxWidth
Gets or sets the maximum width of cropping area.
Public property ContentProviderTypeName
Gets or sets the content provider type name used for uploading files.
Public property CropImageCancelCaption
Gets or sets the cancel button caption.
Public property CropImageSubmitCaption
Gets or sets the caption for crop image button.
Public property CropMinSizeHeight
Gets or sets the minimum height of the cropping area.
Public property CropMinSizeWidth
Gets or sets the minimum width of the cropping area.
Public property DesiredImageHeight
Gets or sets the height of the image when resized.
Public property DesiredImageWidth
Gets or sets the width of the image when resized.
Public property FileContentProvider
Gets or sets the file content provider.
Public property FileInfo
Gets or sets the file information object.
Public property HeightOnClient
Gets or sets the calculated height of the image which will be set on the client.
Public property ImageAspectRatio
Gets or sets the image aspect ratio.
Public property PostedFile
Gets or sets the posted file received via file upload.
Public property UseBase64ImageEncoding
Gets or sets the value indicating if the control will save an image to a temporary directory or will encode it as a base 64 image.
Public property WidthOnClient
Gets or sets the calculated width of the image which will be set on the client.

Events

  Name Description
Public event ImageResizeCanceled
Resize canceled events.
Public event ImageResized
Image resized event

See Also