Platforms to show: All Mac Windows Linux Cross-Platform

Back to CGImageSourceMBS class.

Next items

CGImageSourceMBS.CreateIncremental(options as dictionary=nil) as CGImageSourceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Create an incremental image source.

options: A dictionary that specifies additional creation options. For example kCGImageSourceTypeIdentifierHint.

The function CreateIncremental 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.

CGImageSourceMBS.CreateThumbnailMT(data as MemoryBlock, ImageIndex as integer = 0, Options as dictionary = nil) as CGImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates thumbnail for image thread friendly.

Data contains the image file data.
ImageIndex is the index of the image in the file to query.
Options contains various flags for options to creating image source and creating thumbnail.

Returns nil in case of any error.

The work is performed on a preemptive thread, so this function does not block the application and can yield time to other Xojo threads. Must be called in a Xojo thread to enjoy benefits. If called in main thread will block, but keep other background threads running.
If you run several threads calling MT methods, you can get all CPU cores busy while main thread shows GUI with progress window.

See also:

Some examples using this method:

CGImageSourceMBS.CreateThumbnailMT(data as String, ImageIndex as integer = 0, Options as dictionary = nil) as CGImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates thumbnail for image thread friendly.

Data contains the image file data.
ImageIndex is the index of the image in the file to query.
Options contains various flags for options to creating image source and creating thumbnail.

Returns nil in case of any error.

The work is performed on a preemptive thread, so this function does not block the application and can yield time to other Xojo threads. Must be called in a Xojo thread to enjoy benefits. If called in main thread will block, but keep other background threads running.
If you run several threads calling MT methods, you can get all CPU cores busy while main thread shows GUI with progress window.

See also:

CGImageSourceMBS.CreateThumbnailMT(file as FolderItem, ImageIndex as integer = 0, Options as dictionary = nil) as CGImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates thumbnail for image thread friendly.

File refers to image file on disk.
ImageIndex is the index of the image in the file to query.
Options contains various flags for options to creating image source and creating thumbnail.

Returns nil in case of any error.

The work is performed on a preemptive thread, so this function does not block the application and can yield time to other Xojo threads. Must be called in a Xojo thread to enjoy benefits. If called in main thread will block, but keep other background threads running.
If you run several threads calling MT methods, you can get all CPU cores busy while main thread shows GUI with progress window.

See also:

CGImageSourceMBS.CreateWithData(data as string, options as dictionary=nil) as CGImageSourceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates an image source that reads from a string.

data: The data string to read from.
options: A dictionary that specifies additional creation options. For example kCGImageSourceTypeIdentifierHint.

Returns an image source.
Available in Mac OS X version 10.4 and later.

CGImageSourceMBS.CreateWithFile(file as folderitem, options as dictionary=nil) as CGImageSourceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates an image source that reads from a location specified by a file.
Example
// get a picture file
dim file as FolderItem = SpecialFolder.Desktop.Child("sylwia.jpg")
// get image source
dim source as new CGImageSourceMBS(file)
// read image
dim image as CGImageMBS = source.CreateImageAtIndex(0)
// get Color space from image
dim profile as CGColorSpaceMBS = image.ColorSpace
// get ICC profile data
dim ICCProfile as string = profile.ICCProfile
// and parse it with LCMS and show name
dim LCMSProfile as LCMS2ProfileMBS = LCMS2ProfileMBS.OpenProfileFromString(ICCProfile)
MsgBox LCMSProfile.Name

url: The URL to read from.

options: A dictionary that specifies additional creation options. For example kCGImageSourceTypeIdentifierHint.

Returns an image source.

Available in Mac OS X version 10.4 and later.

CGImageSourceMBS.CreateWithURL(url as string, options as dictionary=nil) as CGImageSourceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates an image source that reads from a location specified by a URL.

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.

CGImageSourceMBS.kCGImageProperty8BIMDictionary as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys for the properties dictionary.

A dictionary of key-value pairs for an Adobe Photoshop image.

CGImageSourceMBS.kCGImageProperty8BIMLayerNames as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys for the properties dictionary.

The layer names for an Adobe Photoshop file.

CGImageSourceMBS.kCGImagePropertyCIFFCameraSerialNumber as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses Camera Image File Format (CIFF).

The camera serial number.

CGImageSourceMBS.kCGImagePropertyCIFFContinuousDrive as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses Camera Image File Format (CIFF).

The continuous drive mode.

CGImageSourceMBS.kCGImagePropertyCIFFDescription as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses Camera Image File Format (CIFF).

The camera description..

CGImageSourceMBS.kCGImagePropertyCIFFDictionary as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys for the properties dictionary.

A dictionary of key-value pairs for an image that uses Camera Image File Format (CIFF).

Available in Mac OS X v10.5 and later.

CGImageSourceMBS.kCGImagePropertyCIFFFirmware as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses Camera Image File Format (CIFF).

The firmware version.

CGImageSourceMBS.kCGImagePropertyCIFFFlashExposureComp as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses Camera Image File Format (CIFF).

The flash exposure compensation.

CGImageSourceMBS.kCGImagePropertyCIFFFocusMode as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses Camera Image File Format (CIFF).

The focus mode.

CGImageSourceMBS.kCGImagePropertyCIFFImageFileName as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses Camera Image File Format (CIFF).

The image file name.

CGImageSourceMBS.kCGImagePropertyCIFFImageName as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses Camera Image File Format (CIFF).

The image name.

CGImageSourceMBS.kCGImagePropertyCIFFImageSerialNumber as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses Camera Image File Format (CIFF).

The image serial number.

CGImageSourceMBS.kCGImagePropertyCIFFLensMaxMM as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses Camera Image File Format (CIFF).

The maximum lens length.

CGImageSourceMBS.kCGImagePropertyCIFFLensMinMM as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses Camera Image File Format (CIFF).

The minimum lens length.

CGImageSourceMBS.kCGImagePropertyCIFFLensModel as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses Camera Image File Format (CIFF).

The lens model.

CGImageSourceMBS.kCGImagePropertyCIFFMeasuredEV as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses Camera Image File Format (CIFF).

The measured EV.

CGImageSourceMBS.kCGImagePropertyCIFFMeteringMode as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses Camera Image File Format (CIFF).

The metering mode.

CGImageSourceMBS.kCGImagePropertyCIFFOwnerName as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses Camera Image File Format (CIFF).

The owner name.

CGImageSourceMBS.kCGImagePropertyCIFFRecordID as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses Camera Image File Format (CIFF).

The record ID

CGImageSourceMBS.kCGImagePropertyCIFFReleaseMethod as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses Camera Image File Format (CIFF).

The release method.

CGImageSourceMBS.kCGImagePropertyCIFFReleaseTiming as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses Camera Image File Format (CIFF).

The release timing.

CGImageSourceMBS.kCGImagePropertyCIFFSelfTimingTime as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses Camera Image File Format (CIFF).

The self timing time.

CGImageSourceMBS.kCGImagePropertyCIFFShootingMode as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses Camera Image File Format (CIFF).

The shooting mode.

CGImageSourceMBS.kCGImagePropertyCIFFWhiteBalanceIndex as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses Camera Image File Format (CIFF).

The white balance index.

CGImageSourceMBS.kCGImagePropertyColorModel as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys for the properties dictionary.

The color model of the image such as, "RGB", "CMYK", "Gray", or "Lab". The value of this key is CFStringRef.

A color model describes how color values are represented mathematically. A color space is a color model combined with a definition of how to interpret values within the model.

Some examples using this method:

CGImageSourceMBS.kCGImagePropertyColorModelCMYK as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Values for the color model property.

A CMYK color model.

CGImageSourceMBS.kCGImagePropertyColorModelGray as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Values for the color model property.

A Gray color model.

Some examples using this method:

CGImageSourceMBS.kCGImagePropertyColorModelLab as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Values for the color model property.

A Lab color model.

CGImageSourceMBS.kCGImagePropertyColorModelRGB as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Values for the color model property.

An RGB color model.

Some examples using this method:

CGImageSourceMBS.kCGImagePropertyDepth as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys for the properties dictionary.

The number of bits in each color sample of each pixel. If present, this key is a CFNumber value.

CGImageSourceMBS.kCGImagePropertyDNGBackwardVersion as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses the Digital Negative (DNG) archival format.

The oldest version for which a file is compatible.

CGImageSourceMBS.kCGImagePropertyDNGCameraSerialNumber as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses the Digital Negative (DNG) archival format.

The camera serial number.

CGImageSourceMBS.kCGImagePropertyDNGDictionary as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys for the properties dictionary.

A dictionary of key-value pairs for an image that uses the Digital Negative (DNG) archival format.

CGImageSourceMBS.kCGImagePropertyDNGLensInfo as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses the Digital Negative (DNG) archival format.

Information about the lens used for the image.

CGImageSourceMBS.kCGImagePropertyDNGLocalizedCameraModel as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses the Digital Negative (DNG) archival format.

The localized camera model name.

CGImageSourceMBS.kCGImagePropertyDNGUniqueCameraModel as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses the Digital Negative (DNG) archival format.

A unique, nonlocalized name for the camera mode.

CGImageSourceMBS.kCGImagePropertyDNGVersion as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for an image that uses the Digital Negative (DNG) archival format.

An encoding of the four-tier version number.

CGImageSourceMBS.kCGImagePropertyDPIHeight as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys for the properties dictionary.

The resolution, in dots per inch, in the x dimension. If present, this key is a CFNumber value.

CGImageSourceMBS.kCGImagePropertyDPIWidth as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys for the properties dictionary.

The resolution, in dots per inch, in the y dimension. If present, this key is a CFNumber value.

CGImageSourceMBS.kCGImagePropertyExifApertureValue as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for the (EXIF) dictionary for an image that uses Exchangeable Image File Format (EXIF).

The aperture value.

CGImageSourceMBS.kCGImagePropertyExifAuxDictionary as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys for the properties dictionary.

An auxiliary dictionary of key-value pairs for an image that uses Exchangeable Image File Format (EXIF).

CGImageSourceMBS.kCGImagePropertyExifAuxFirmware as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Keys for the Exif Auxiliary dictionary for an image that uses Exchangeable Image File Format (EXIF).

Firmware information.

Next items

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


The biggest plugin in space...