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.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3    Statistic  

CGImageSource.CreateWithURL

Creates an image source that reads from a location specified by a URL.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CGImageSource 3.4 Yes No Yes, macOS only No Yes

MBS( "CGImageSource.CreateWithURL"; URL )

Parameters

Parameter Description Example value
URL The URL to the file. $URL

Result

Returns the reference number for this image source or error message.

Description

Creates an image source that reads from a location specified by a URL.
Don't forget to call CGImageSource.Release later to release the reference number.
CoreGraphics Image Source reference numbers are starting at 25000 and counting up for each new image source.

Examples

Loads image and shows it:

Set Variable [ $url ; Value: "http://www.monkeybreadsoftware.de/images/fmplugin16.png" ]
Set Variable [ $img ; Value: MBS( "CGImageSource.CreateWithURL"; $url ) ]
Set Field [ test::output ; MBS( "CGImageSource.ImageAtIndex"; $img; 0) ]
Set Variable [ $r ; Value: MBS( "CGImageSource.Release"; $img ) ]

See also


CGImageSource.CreateWithPath   -   CGImageSource.ImageAtIndex

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins