ly.img.android.pesdk.backend.model.config / FrameAsset / <init>

<init>

FrameAsset(id: String!, frameId: Int, aspectConfig: CropAspectAsset!, groupId: Int)

Creates a Frame Config

Parameters

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(id: String!, frameConfig: CustomPatchFrameAsset!)

Creates a Frame Config with unspecific aspect

Parameters

frameConfig - CustomPatchFrameAsset!: the frame image resource

FrameAsset(id: String!, frameConfig: CustomPatchFrameAsset!, fixedRelativeScale: Float)

Creates a Frame Config with unspecific aspect

Parameters

frameConfig - CustomPatchFrameAsset!: the frame image resource

FrameAsset(id: String!, frameConfig: CustomPatchFrameAsset!, fixedRelativeScale: Float, scaleIsFixed: Boolean)

Creates a Frame Config with unspecific aspect

Parameters

frameConfig - CustomPatchFrameAsset!: the frame image resource

FrameAsset(id: String!, frameId: Int, frameMaskId: Int, aspectConfig: CropAspectAsset!, groupId: Int)

Creates a Frame Config

Parameters

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!)