open class CropAspectAsset : AbstractAsset
CropAspectAsset(id: String!, cropWidth: Int, cropHeight: Int, fixedSize: Boolean) CropAspectAsset(id: String!, cropWidth: Int, cropHeight: Int, fixedSize: Boolean, exportMask: Boolean) CropAspectAsset(id: String!, cropWidth: Int, cropHeight: Int, fixedSize: Boolean, exportMask: Boolean, maskColor: Int) CropAspectAsset(id: String!, cropWidth: Int, cropHeight: Int, fixedSize: Boolean, exportMask: Boolean, maskColor: Int, cornerRadius: Float) CropAspectAsset(in: Parcel!) |
static val CREATOR: Creator! |
|
static val FREE_CROP: CropAspectAsset! |
|
static val FREE_CROP_ID: String |
|
static val MASK_CROP_ID: String |
|
static val RESET_CROP_ID: String |
open fun describeContents(): Int |
|
open fun getAspect(): BigDecimal!
Get Aspect the ration or #CropAspectAsset.CUSTOM_ASPECT if it is custom aspect mode. |
|
fun getConfigType(): Class<out AbstractAsset!>! |
|
open fun getCropHeight(): Int |
|
open fun getCropMaskColor(): Int
Get Color of the crop mask. |
|
open fun getCropMaskCornerRadius(): Float
Get the crop mask corner radius. |
|
open fun getCropWidth(): Int |
|
open fun hasEqualAspect(o: CropAspectAsset!): Boolean |
|
open fun hashCode(): Int |
|
open fun hasSpecificSize(): Boolean |
|
open fun isFreeCrop(): Boolean |
|
open fun isHasFixedSize(): Boolean |
|
open fun isMaskedCrop(): Boolean |
|
open fun shouldExportCropMask(): Boolean
Get export value of the crop mask export. |
|
open fun writeToParcel(dest: Parcel!, flags: Int): Unit |
open fun equals(o: Any!): Boolean |
|
open fun flagAsTemporary(): Unit |
|
open fun getId(): String! |
|
open fun getIdWithoutVersion(): String! |
|
open fun getLegacyVersion(): SemVersion!
Returns the latest supported Version of this Asset or null if it is the latest version of this assets |
|
open fun isTemporary(): Boolean |
open 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. |