Table of Contents

TTMSMCPCloudAIImage.LoadFromPicture Method

Replaces the stored image bytes with the encoded content of the supplied bitmap.

API unit family: TMS.MCP.CloudImageAI Declaring type: TTMSMCPCloudAIImage

Overloads

Overload 1

Replaces the stored image bytes with the encoded content of the supplied bitmap.

procedure LoadFromPicture(APicture: TBitmap);

Remarks

Any previously stored content is discarded first. The bytes are stored in whatever format the bitmap writes to a stream, and the format is reported to the service as the detected content type of the uploaded part.

Parameters

Name Description
APicture Bitmap whose content is saved into the item. The bitmap itself is left unchanged.

Overload 2

Replaces the stored image bytes with the encoded content of the supplied picture.

procedure LoadFromPicture(APicture: TPicture);

Remarks

Any previously stored content is discarded first. The bytes are stored in whatever format the picture writes to a stream, and the format is reported to the service as the detected content type of the uploaded part.

Parameters

Name Description
APicture Picture whose content is saved into the item. The picture itself is left unchanged.