TTMSMCPCloudAIImage Class
Holds one reference image in memory for use as input to an image generation, background removal or background replacement request.
API unit family: TMS.MCP.CloudImageAI
Inherits from: TCollectionItem
Syntax
TTMSMCPCloudAIImage = class(TCollectionItem)
Remarks
The item owns its Stream and frees it when the item is destroyed. Create items through the owning collection rather than constructing them directly, and fill them with LoadFromPicture or by writing into the stream.
Properties
| Name | Description |
|---|---|
| Stream | In-memory stream holding the encoded bytes of this reference image. |
Methods
| Name | Description |
|---|---|
| LoadFromPicture | Replaces the stored image bytes with the encoded content of the supplied bitmap. |