![]() Image Cropper provides a helper class called IOUiSettings that wraps all properties can be used to customize UI in TOCropViewController library. ![]() Set to true to hide the bottom controls (shown by default)ĭesired aspect ratio is applied (from the list of given aspect ratio presets) when starting the cropper Set to true if you want to lock the aspect ratio of crop bounds with a fixed value (locked by default) Set to true if you want to see a crop grid/guidelines on top of an image Propertyĭesired color of Toolbar text and buttons (default is darker orange)ĭesired background color that should be applied to the root viewĭesired resolved color of the active and selected widget and progress wheel middle line (default is white)ĭesired color of dimmed area around the crop boundsĭesired width of crop frame line in pixelsĭesired width of crop grid lines in pixels Image Cropper provides a helper class called AndroidUiSettings that wraps all properties can be used to customize UI in uCrop library. It causes some configuration fields not working ( maxWidth, maxHeight, aspectRatio, aspectRatioPresets) on Web.Ĭustomization # Android # Click to view detail The implementation on Web is much different compared to the implementation on mobile app. The result file is saved in NSTemporaryDirectory on iOS and application Cache directory on Android, so it can be lost later, you are responsible for storing it somewhere permanent (if needed). UiSettings: controls UI customization on specific platform (android, ios, web.) Note: this field can be overrided by on WebĬompressFormat: the format of result image, png or jpg (default is ImageCompressFormat.jpg).ĬompressQuality: number between 0 and 100 to control the quality of image compression. Note: this field is ignored on Web.ĬropStyle: controls the style of crop bounds, it can be rectangle or circle style (default is CropStyle.rectangle). In Android, you can set the initialized aspect ratio when starting the cropper by setting the value of AndroidUiSettings.initAspectRatio. Note: this field is ignored on Web.ĪspectRatioPresets: controls the list of aspect ratios in the crop menu view. If this values is set, the cropper is locked and user can't change the aspect ratio of crop bounds. Note: this field is ignored on Web.ĪspectRatio: controls the aspect ratio of crop bounds.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |