ITMSMCPCustomCloudImageAI.BuildReplaceBackgroundRequest Method
Fills a request with the service call that places the subject of one image onto the background of another.
API unit family: TMS.MCP.CloudImageAI
Declaring type: ITMSMCPCustomCloudImageAI
Syntax
procedure BuildReplaceBackgroundRequest(ARequest: TTMSMCPCloudBaseRequest; ARefImage, ABackgroundImage: TStream);
Remarks
Only some services expose a dedicated endpoint for this; the others express the operation as a multi-image editing call with a fixed instruction. An implementation may switch itself into a polled mode for this operation only.
Parameters
| Name | Description |
|---|---|
ARequest |
Request to populate. It has already been cleared, and its method, address, headers and body are set here. |
ARefImage |
Stream holding the image that supplies the subject. Its position is reset before the call. |
ABackgroundImage |
Stream holding the image that supplies the new background. Its position is reset before the call. |