Platforms to show: All Mac Windows Linux Cross-Platform

Back to CGImageSourceMBS class.

CGImageSourceMBS.Count as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the number of images (not including thumbnails) in the image source.
Example
dim file as FolderItem = SpecialFolder.Desktop.Child("test.jpg")
dim c as new CGImageSourceMBS(file)

MsgBox str(c.Count)+" images in this file."

The number of images. If the image source is a multilayered PSD file, the function returns 1.

This function does not extract the layers of a PSD file.

Available in Mac OS X version 10.4 and later.
(Read only property)

CGImageSourceMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The internal reference.

(Read and Write property)

CGImageSourceMBS.Status as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Return the status of an image source.

Returns the current status of the image source.

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.
(Read only property)

CGImageSourceMBS.Type as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the uniform type identifier of the source container.

The uniform type identifier of the image.

The uniform type identifier (UTI) of the source container can be different from the type of the images in the container. For example, the .icns format supports embedded JPEG2000. The type of the source container is "com.apple.icns" but type of the images is JPEG2000.

Available in Mac OS X version 10.4 and later.
(Read only property)

The items on this page are in the following plugins: MBS MacCG Plugin.


The biggest plugin in space...