Table of Contents

TTMSMCPCloudImageAI.OnImageGenerated Event

Fires when a request has produced an image.

API unit family: TMS.MCP.CloudImageAI Declaring type: TTMSMCPCloudImageAI Inherited from: TTMSMCPCustomCloudImageAI

Syntax

OnImageGenerated: TTMSMCPCloudImageAIGenerateImageResultEvent;

Remarks

Raised on the main thread, once per completed operation and after any polling has finished, so the handler may touch the user interface directly. The handler receives the image as a base64-encoded string and cannot cancel or alter the operation, which is already complete. A request that produced no image raises the error event instead.

Parameters

Name Description
Sender Component that issued the request.
ARequestResult Result of the underlying call, carrying the status flag, the status code, the raw response body and the response headers.
ABase64Image The produced image as a base64-encoded string. Never empty, because an empty result is reported through the error event instead.