BcImageCropper
Description
The BcImageCropper component provides image cropping functionality within a customizable canvas. Users can load an image, resize it, adjust the crop box, and save the cropped output.
Sample
Parameters
Class
string?
CSS classes applied to the component.
Style
string?
Inline styles applied to the component.
Rotation
int
Sets the rotation angle of the image.
Resizeable
bool
Indicates if the crop box can be resized.
TargetWidth
int
Defines the width of the cropped output.
TargetHeight
int
Defines the height of the cropped output.
ContainerWidth
int
Specifies the width of the cropping area.
ContainerHeight
int
Specifies the height of the cropping area.
AccentColor
string
Accent color used in the UI elements of the cropper.
DefaultColor
string
Default color used for the cropping area.
BackDropColor
string
Color of the backdrop behind the cropping area.
Methods
Loads an image into the cropper from a byte array.
Saves the cropped image to a file.
Sets the target width for the cropped image.
Sets the target height for the cropped image.