Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

ImagePlayground.Image

Queries the last image generated.

Component Version macOS Windows Linux Server iOS SDK
ImagePlayground 15.0 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "ImagePlayground.Image" { ; ImageType; FileName } )   More

Parameters

Parameter Description Example Flags
ImageType The type of image to return.
Either JPEG, PNG, GIF or BMP. Default is JPEG.
"JPEG" Optional
FileName The filename to use for the picture.
Default is "image" with the extension matching the image type.
"test.jpg" Optional

Result

Returns container value or error.

Description

Queries the last image generated.

Examples

Trigger to be called when image is available:

Set Variable [ $param ; Value: Get(ScriptParameter) ]
# Check whether we got something
If [ $param = "Created" ]
    Set Variable [ $image ; Value: MBS("ImagePlayground.Image") ]
    New Record/Request
    Set Field [ Assets::Image ; $image ]
    Commit Records/Requests [ With dialog: Off ]
End If
#
# cleanup memory
Set Variable [ $r ; Value: MBS("ImagePlayground.Release") ]

See also

Example Databases

Blog Entries

This function checks for a license.

Created 15th December 2024, last changed 15th December 2024


ImagePlayground.GetSourceImage - ImagePlayground.ImagePath