ITMSMCPCustomCloudImageAI.BuildRemoveBackgroundRequest Method
Fills a request with the service call that removes the background of the supplied image.
API unit family: TMS.MCP.CloudImageAI
Declaring type: ITMSMCPCustomCloudImageAI
Syntax
procedure BuildRemoveBackgroundRequest(ARequest: TTMSMCPCloudBaseRequest; AImage: TStream);
Remarks
Only some services expose a dedicated endpoint for this. The others express the operation as an image-to-image call with a fixed instruction, so the result is a newly generated image rather than a cut-out of the original.
Parameters
| Name | Description |
|---|---|
ARequest |
Request to populate. It has already been cleared, and its method, address, headers and body are set here. |
AImage |
Stream holding the image to process. Its position is reset before the call. |