This is a wrap forthis Github project.
CropIwa
Version: 0.5
Please note
- that the Animated GIF is from the original github proect. It does not look the same in the B4A Example.
- that you need to adapt the path in the example to get the right Imaged loaded which you want to crop.
- To have the changes in the CropOverlay get apllied your last command in the Builder should be "Apply"
This library is Donationware. You can download the library, you can test the library. But if you want to USE the library in your App you need to Donate for it.
Please click here to donate (You can donate any amount you want to donate for the library (or my work)
CropIwa
Version: 0.5
- AspectRatio
Methods:- Initialize (w As Int, h As Int)
- IsInitialized As Boolean
- CropIwaImageViewConfig
Methods:- Initialize
- IsInitialized As Boolean
- apply
- isImageTranslationEnabled As Boolean
- setImageInitialPosition (initialPosition As InitialPosition) As CropIwaImageViewConfigwrapper
- setImageScaleEnabled (scaleEnabled As Boolean) As CropIwaImageViewConfigwrapper
- setImageTranslationEnabled (imageTranslationEnabled As Boolean) As CropIwaImageViewConfigwrapper
- setMaxScale (maxScale As Float) As CropIwaImageViewConfigwrapper
- setMinScale (minScale As Float) As CropIwaImageViewConfigwrapper
- setScale (scale As Float) As CropIwaImageViewConfigwrapper
- ImageInitialPosition As InitialPosition [read only]
- ImageScaleEnabled As Boolean [read only]
- MaxScale As Float [read only]
- MinScale As Float [read only]
- Scale As Float [read only]
- CropIwaOverlayConfig
Methods:- Initialize
- IsInitialized As Boolean
- apply As CropIwaOverlayConfigwrapper
- setAspectRatio (ratio As AspectRatio) As CropIwaOverlayConfigwrapper
- setBorderColor (borderColor As Int) As CropIwaOverlayConfigwrapper
- setBorderStrokeWidth (borderStrokeWidth As Int) As CropIwaOverlayConfigwrapper
- setCornerColor (cornerColor As Int) As CropIwaOverlayConfigwrapper
- setCornerStrokeWidth (cornerStrokeWidth As Int) As CropIwaOverlayConfigwrapper
- setCropShape (cropShape As String) As CropIwaOverlayConfigwrapper
- setCropShape2 (cropShape As CropIwaShape) As CropIwaOverlayConfigwrapper
- setDynamicCrop (enabled As Boolean) As CropIwaOverlayConfigwrapper
- setGridColor (gridColor As Int) As CropIwaOverlayConfigwrapper
- setGridStrokeWidth (gridStrokeWidth As Int) As CropIwaOverlayConfigwrapper
- setMinHeight (minHeight As Int) As CropIwaOverlayConfigwrapper
- setMinWidth (minWidth As Int) As CropIwaOverlayConfigwrapper
- setOverlayColor (overlayColor As Int) As CropIwaOverlayConfigwrapper
- setShouldDrawGrid (shouldDrawGrid As Boolean) As CropIwaOverlayConfigwrapper
- AspectRatio As AspectRatio [read only]
- BorderColor As Int [read only]
- BorderStrokeWidth As Int [read only]
- CornerColor As Int [read only]
- CornerStrokeWidth As Int [read only]
- CropShape As CropIwaShape [read only]
- DynamicCrop As Boolean [read only]
- GridColor As Int [read only]
- GridStrokeWidth As Int [read only]
- MinHeight As Int [read only]
- MinWidth As Int [read only]
- OverlayColor As Int [read only]
- CropIwaResultReceiver
Events:- onCropFailed (error As String)
- onCropSuccess (Uri As String)
- Initialize (EventName As String)
- IsInitialized As Boolean
- register
- unregister
- CropIwaSaveConfig
Methods:- Initialize (uriString As String) As CropIwaSaveConfigwrapper
- IsInitialized As Boolean
- build As CropIwaSaveConfig
- saveToFile (uriString As String) As CropIwaSaveConfigwrapper
- setCompressFormat (compressFormat As CompressFormat) As CropIwaSaveConfigwrapper
- setQuality (quality As Int) As CropIwaSaveConfigwrapper
- setSize (width As Int, height As Int) As CropIwaSaveConfigwrapper
- CropIwaView
Events:- onCroppedRegionSaved (Uri As String)
- onError (error As String)
- ba As BA
- BringToFront
- DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)
- Initialize (EventName As String)
- Invalidate
- Invalidate2 (arg0 As Rect)
- Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
- IsInitialized As Boolean
- RemoveView
- RequestFocus As Boolean
- SendToBack
- SetBackgroundImage (arg0 As Bitmap)
- SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int)
- SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
- SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int)
- SetVisibleAnimated (arg0 As Int, arg1 As Boolean)
- configureImage As CropIwaImageViewConfig
- configureOverlay As CropIwaOverlayConfig
- crop (saveConfig As CropIwaSaveConfig)
- Background As Drawable
- CENTER_CROP As InitialPosition [read only]
- CENTER_INSIDE As InitialPosition [read only]
- Color As Int [write only]
- Enabled As Boolean
- Height As Int
- IMG_SRC As AspectRatio [read only]
- Image As Bitmap [write only]
- ImageUri As String [write only]
- Left As Int
- Padding()() As Int
- Parent As Object [read only]
- Tag As Object
- Top As Int
- Visible As Boolean
- Width As Int
Please note
- that the Animated GIF is from the original github proect. It does not look the same in the B4A Example.
- that you need to adapt the path in the example to get the right Imaged loaded which you want to crop.
- To have the changes in the CropOverlay get apllied your last command in the Builder should be "Apply"
This library is Donationware. You can download the library, you can test the library. But if you want to USE the library in your App you need to Donate for it.
Please click here to donate (You can donate any amount you want to donate for the library (or my work)
Attachments
Last edited: