Appendix
Complex Data Types
Foreground

Foreground

Parameter NameTypeSupported InterfaceDescriptionRequired
ImageIndexIntGeneralThe index of a foreground image in ImageAndMaskList or ImageList, starting from 0.
ResizeModeStringGeneralSpecifying the resize mode of the foreground image when the final generating dimension is different. Reference values: JustResize, CropAndResize, ResizeAndFill. Default value: ResizeAndFill
ClothesMaskIndexIntGenerateFromMannequinSpecifying the clothes to be kept on the mannequin. The index of the mask image in ImageAndMaskList or MaskList starts from 0. The mask is a black-and-white image where the white part represents the redrawn area. You can draw masks independently or obtain them through the "Remove Background" or "Content Extraction" APIs.
InvertMaskBoolGenerateFromMannequinInvert the mask, default value: false