FrameAsset(@NonNull id: java.lang.String, @DrawableRes frameId: int, @Nullable aspectConfig: CropAspectAsset, groupId: int)
Creates a Frame Config
frameId
- int: the frame image resource
aspectConfig
- CropAspectAsset: the aspect that enable this frame.
groupId
- int: the group number to identifier a equal frame with different aspect. If the crop aspect changed the unfitting frame are replaced with a frame that fit the aspect and has the same group id.
FrameAsset(@NonNull id: java.lang.String, frameConfig: CustomPatchFrameAsset)
Creates a Frame Config with unspecific aspect
frameConfig
- CustomPatchFrameAsset: the frame image resource
FrameAsset(@NonNull id: java.lang.String, frameConfig: CustomPatchFrameAsset, fixedRelativeScale: float)
Creates a Frame Config with unspecific aspect
frameConfig
- CustomPatchFrameAsset: the frame image resource
FrameAsset(@NonNull id: java.lang.String, frameConfig: CustomPatchFrameAsset, fixedRelativeScale: float, scaleIsFixed: boolean)
Creates a Frame Config with unspecific aspect
frameConfig
- CustomPatchFrameAsset: the frame image resource
FrameAsset(@NonNull id: java.lang.String, @DrawableRes frameId: int, @DrawableRes frameMaskId: int, @Nullable aspectConfig: CropAspectAsset, groupId: int)
Creates a Frame Config
frameId
- int: the frame image resource
frameMaskId
- int: the mask of this frame as a blank and white image, full black are 100% transparent full white are opaque. this is Usefull for use JPEG's frames. !!! NOTE: if, your mask is an PNG image, you need to saveImage it as an 24bit or 32bit png and add an extra pixel line with rainbow colors, this is because Android itself has an bug !!!
aspectConfig
- CropAspectAsset: the aspect that enable this frame.
groupId
- int: the group number to identifier a equal frame with different aspect. If the crop aspect changed the unfitting frame are replaced with a frame that fit the aspect and has the same group id.
protected FrameAsset(in: Parcel)