🧩 BGCutOut
An extension for MIT App Inventor 2.An Offline advanced Image CutOut, Drawing, and Cropping. BGCutOut provides two distinct ways to erase backgrounds from images, alongside a new powerful inline Cropping component! for MIT App Inventor 2, Kodular, and Niotron. Developed by TechHamara using Fast.
Find More Extension
Terms & Conditions
Find More On BuyMeCoffee Page
Specifications
Package: io.th.bgcutout
Size: 249.07 KB
Version: 1.0
Minimum API Level: 14
Updated On: 2026-05-09T00:00:00Z
Built & documented using: FAST
Library Used: thanks you GabrielBB for your library Android-CutOut
Paid aix: 5USD. get here BuyMeacoffee page.
Demo
Output
Blocks
here
Documentation
Events:
BGCutOut has total 4 events.
1. CutOutSuccess
Triggered when CutOut Activity finishes successfully.
| Parameter | Type |
|---|---|
| imageUri | text |
2. CutOutError
Triggered when CutOut Activity fails or is canceled.
| Parameter | Type |
|---|---|
| errorMessage | text |
3. ImageSaved
Event triggered when SaveImage completes.
| Parameter | Type |
|---|---|
| path | text |
| success | boolean |
| errorMessage | text |
4. CropperImageSaved
Triggered when Cropper finishes saving the image.
| Parameter | Type |
|---|---|
| path | text |
| success | boolean |
| errorMessage | text |
Methods:
BGCutOut has total 11 methods.
1. Initialize
Initialize inside an arrangement.
| Parameter | Type |
|---|---|
| arrangement | component |
2. Undo
Undo last edit
3. Redo
Redo last edit
4. CustomCheckerboard
Set a custom checkerboard background.
| Parameter | Type |
|---|---|
| colorOdd | number |
| colorEven | number |
| size | number |
5. InitializeCropper
Initialize Cropper inside an arrangement.
| Parameter | Type |
|---|---|
| arrangement | component |
6. AspectRatio
Set Aspect Ratio values
| Parameter | Type |
|---|---|
| x | number |
| y | number |
7. MinCropResultSize
Set the minimum size of the resulting cropping image.
| Parameter | Type |
|---|---|
| width | number |
| height | number |
8. MaxCropResultSize
Set the maximum size of the resulting cropping image.
| Parameter | Type |
|---|---|
| width | number |
| height | number |
9. RotateImage
Rotate cropped image
| Parameter | Type |
|---|---|
| degrees | DirectionType (helper blocks) |
- Enums for DirectionType:
Type0,Type90,Type180,Type270
10. FlipHorizontally
Flip Cropper Image Horizontally
11. FlipVertically
Flip Cropper Image Vertically
Setters:
BGCutOut has total 19 setter properties.
1. StrokeWidth
Set Stroke Width
- Input type:
number
2. StrokeColor
Set Stroke Color. Supports transparent color for eraser capability.
- Input type:
number
3. Action
Set Action. Use 'AUTO_CLEAR', 'MANUAL_CLEAR', or 'ZOOM'
- Input type:
text - Helper type:
ActionType - Helper enums:
AutoClear,ManualClear,Zoom
4. Image
Set Image from File Path
- Input type:
text
5. SaveImage
Saves the current edited image to the BgCutOut directory. Specify 'png' or 'jpg' as the format.
- Input type:
text - Helper type:
FormatType - Helper enums:
Png,Jpg
6. GetImageBase64
Returns the current edited image as a Base64 string.
- Input type:
number
7. ShowCheckerboardBackground
Enable or disable Checkerboard background for transparent areas.
- Input type:
boolean
8. CropperImage
Set Image for Cropper from File Path or Asset
- Input type:
text
9. CropShape
Set crop shape to Rectangle, Oval, Heart, Star, or Polygon
- Input type:
text - Helper type:
ShapeType - Helper enums:
Rectangle,Oval,Heart,Star,Polygon
10. FixAspectRatio
Fix Aspect Ratio
- Input type:
boolean
11. Guidelines
Show or Hide Guidelines (ON, OFF, ON_TOUCH)
- Input type:
text
12. AutoZoomEnabled
Enable or disable auto-zoom for the cropper.
- Input type:
boolean
13. MultiTouchEnabled
Enable or disable multi-touch functionality for the cropper.
- Input type:
boolean
14. MaxZoom
Set the maximum zoom allowed during cropping.
- Input type:
number
15. ShowCropOverlay
Set whether to show the crop overlay UI.
- Input type:
boolean
16. ShowProgressBar
Set whether to show the progress bar during async operations.
- Input type:
boolean
17. SnapRadius
Set the snap radius for the crop window.
- Input type:
number
18. ImageScaleType
Set the scale type for the cropping image (e.g., FitCenter, Center, CenterCrop, CenterInside).
- Input type:
text - Helper type:
Type - Helper enums:
FitCenter,Center,CenterCrop,CenterInside
19. SaveCroppedImage
Crops the image and saves it to the BgCutOut directory. Specify format 'png' or 'jpg'.
- Input type:
text - Helper type:
FormatType