FrameAsset

Creates a Frame Config

Parameters

aspectConfig

the aspect that enable this frame.

frameId

the frame image resource

groupId

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.

fun FrameAsset(id: String, frameId: Int, aspectConfig: <ERROR CLASS>?, groupId: Int)

Creates a Frame Config with unspecific aspect

Parameters

frameConfig

the frame image resource

fun FrameAsset(id: String, frameConfig: <ERROR CLASS>?)

Creates a Frame Config with unspecific aspect

Parameters

frameConfig

the frame image resource

fun FrameAsset(id: String, frameConfig: <ERROR CLASS>?, fixedRelativeScale: Float, scaleIsFixed: Boolean)

Creates a Frame Config

Parameters

aspectConfig

the aspect that enable this frame.

frameId

the frame image resource

frameMaskId

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. <br></br>

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

groupId

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.

fun FrameAsset(id: String, frameId: Int, frameMaskId: Int, aspectConfig: <ERROR CLASS>?, groupId: Int)