Platforms to show: All Mac Windows Linux Cross-Platform
Back to CGImageSourceMBS class.
CGImageSourceMBS.Constructor(data as string, options as dictionary = nil)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 9.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
data: The data string to read from.
options: A dictionary that specifies additional creation options. For example kCGImageSourceTypeIdentifierHint.
On success the handle value is not zero.
Available in Mac OS X version 10.4 and later.
See also:
CGImageSourceMBS.Constructor(file as folderitem, options as dictionary = nil)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 9.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
url: The URL to read from.
options: A dictionary that specifies additional creation options. For example kCGImageSourceTypeIdentifierHint.
On success the handle value is not zero.
Available in Mac OS X version 10.4 and later.
See also:
CGImageSourceMBS.Constructor(options as dictionary = nil)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 9.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
options: A dictionary that specifies additional creation options. For example kCGImageSourceTypeIdentifierHint.
Returns an image source object.
The constructor creates an empty image source container to which you can add data later by calling the function UpdateData. You don't provide data when you call this function.
An incremental image is an image that is created in chunks, similar to the way large images viewed over the web are loaded piece by piece.
Available in Mac OS X version 10.4 and later.
See also:
CGImageSourceMBS.CreateImageAtIndex(index as Integer, options as dictionary = nil) as CGImageMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 9.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
index: The index that specifies the location of the image. The index is zero-based.
options: A dictionary that specifies additional creation options.
Returns a CGImage object.
Available in Mac OS X version 10.4 and later.
Some examples using this method:
CGImageSourceMBS.CreateThumbnailAtIndex(index as Integer, options as dictionary = nil) as CGImageMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 9.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
index: The index that specifies the location of the image. The index is zero-based.
options: A dictionary that specifies additional creation options.
Returns a CGImageMBS.
If the image source is a PDF, this function creates a 72 dpi image of the PDF page specified by the index that you pass. You must, however, pass an options dictionary that contains either the kCGImageSourceCreateThumbnailFromImageIfAbsent or kCGImageSourceCreateThumbnailFromImageAlways keys, with the value of the key set to TRUE.
Available in Mac OS X version 10.4 and later.
Some examples using this method:
CGImageSourceMBS.Properties(options as dictionary = nil) as dictionary
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 9.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
options: A dictionary you can use to request additional options.
Returns a dictionary that contains the properties associated with the image source container.
These properties apply to the container in general but not necessarily to any individual image contained in the image source.
Available in Mac OS X version 10.4 and later.
CGImageSourceMBS.PropertiesAtIndex(index as Integer, options as dictionary = nil) as dictionary
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 9.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
index: The index of the image whose properties you want to obtain. The index is zero-based.
options: A dictionary you can use to request additional options.
Returns a dictionary that contains the properties associated with the image.
Available in Mac OS X version 10.4 and later.
Some examples using this method:
CGImageSourceMBS.PropertiesAtIndexCF(index as Integer, options as Variant = nil) as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 13.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
index: The index of the image whose properties you want to obtain. The index is zero-based.
options: A dictionary or CFDictionaryMBS you can use to request additional options.
Returns a CFDictionaryMBS that contains the properties associated with the image.
Available in Mac OS X version 10.4 and later.
CGImageSourceMBS.PropertiesCF(options as Variant = nil) as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 13.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
options: A dictionary or CFDictionaryMBS you can use to request additional options.
Returns a CFDictionaryMBS that contains the properties associated with the image source container.
These properties apply to the container in general but not necessarily to any individual image contained in the image source.
Available in Mac OS X version 10.4 and later.
CGImageSourceMBS.StatusAtIndex(index as Integer) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 9.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
index: The index of the image whose status you want to obtain. The index is zero-based.
Returns the current status of the image.
The status is particularly informative for incremental image sources, but may also be used by clients that provide non-incremental data.
Available in Mac OS X version 10.4 and later.
CGImageSourceMBS.UpdateData(data as string, final as boolean)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 9.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
data: The data to add to the image source. Each time you call the function UpdateData, the data parameter must contain all of the image file data accumulated so far.
final: A value that specifies whether the data is the final set. Pass true if it is, false otherwise.
Available in Mac OS X version 10.4 and later.
The items on this page are in the following plugins: MBS MacCG Plugin.