class CropAspectAsset : AbstractAsset
CropAspectAsset(id: java.lang.String, cropWidth: int, cropHeight: int, fixedSize: boolean) CropAspectAsset(id: java.lang.String, cropWidth: int, cropHeight: int, fixedSize: boolean, exportMask: boolean) CropAspectAsset(id: java.lang.String, cropWidth: int, cropHeight: int, fixedSize: boolean, exportMask: boolean, maskColor: int) CropAspectAsset(id: java.lang.String, cropWidth: int, cropHeight: int, fixedSize: boolean, exportMask: boolean, maskColor: int, cornerRadius: float) CropAspectAsset(in: Parcel) |
fun describeContents(): int |
|
fun getAspect(): java.math.BigDecimal
Get Aspect the ration or #CropAspectAsset.CUSTOM_ASPECT if it is custom aspect mode. |
|
fun getConfigType(): java.lang.Class<? extends ly.img.android.pesdk.backend.model.config.AbstractAsset> |
|
fun getCropHeight(): int |
|
fun getCropMaskColor(): int
Get Color of the crop mask. |
|
fun getCropMaskCornerRadius(): float
Get the crop mask corner radius. |
|
fun getCropWidth(): int |
|
fun hasEqualAspect(o: CropAspectAsset): boolean |
|
fun hashCode(): int |
|
fun hasSpecificSize(): boolean |
|
fun isFreeCrop(): boolean |
|
fun isHasFixedSize(): boolean |
|
fun isMaskedCrop(): boolean |
|
fun shouldExportCropMask(): boolean
Get export value of the crop mask export. |
|
fun writeToParcel(dest: Parcel, flags: int): void |
CREATOR |
|
FREE_CROP |
|
FREE_CROP_ID |
|
MASK_CROP_ID |
|
RESET_CROP_ID |
class MaskedCropAspectAsset : CropAspectAsset
The MaskedCropAspectAsset instance should be added by calling `addAsset` of the `AssetConfig`. After that you can apply it directly by calling `setAspect(cropAspectAsset)` of the `TransformSettings`. To make this configuration available to the end user, you also have to add a `CropMaskItem()` with the same id. |