Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5    Statistic  

Container.ReadImage

Reads and convert image.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Container 8.4 Yes No Yes, macOS only No No
MBS( "Container.ReadImage"; Container { ; ImageType; Filename } )   More

Parameters

Parameter Description Example value
Container The container field or value to inspect. MyTable::MyContainerField
ImageType Optional
The type of image to return. Either JPEG, PNG, GIF or BMP. Default is JPEG.
"JPEG"
Filename Optional
The filename to use for the picture. Default is "image" with the extension matching the image type.
"test.jpg"

Result

Returns image container or error.

Description

Reads and convert image.
This function is useful to read all the image formats supported by Apple's frameworks and convert them to a common format like JPEG or PNG.
Use this function to convert old PICT images in containers.

Examples

Convert PICT to PNG:

Set Field [ Test::output ; MBS("Container.ReadImage"; Test::OldImage; "PNG"; "image.png") ]

See also

Created 29th July 2018, last changed 29th July 2018


Container.ReadFile   -   Container.Remove

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins