Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items

CGImageSourceMBS.kCGImagePropertyRawDictionary as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: One of the keys for the properties dictionary.
Notes: A dictionary of key-value pairs for an image that contains minimally processed, or raw, data.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImagePropertyTIFFArtist as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Keys for an image that uses Tagged Image File Format (TIFF).
Notes: The artist.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImagePropertyTIFFCompression as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Keys for an image that uses Tagged Image File Format (TIFF).
Notes: The compression scheme used on the image data.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImagePropertyTIFFCopyright as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Keys for an image that uses Tagged Image File Format (TIFF).
Notes: Copyright information.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImagePropertyTIFFDateTime as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Keys for an image that uses Tagged Image File Format (TIFF).
Notes: The date and time.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImagePropertyTIFFDictionary as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: One of the keys for the properties dictionary.
Example:
// Change rotation in an image file

// files
dim dpath as folderitem = SpecialFolder.Desktop.Child("test.jpg")
dim opath as folderitem = dpath.parent.Child("output.jpg")

// open source
dim imageSource as new cgimagesourcembs(dpath)

// read image
dim img as cgimagembs = imageSource.createimageatindex(0)

// global properties
dim globalprop as dictionary = imageSource.properties
// per image properties
dim p as Dictionary = imageSource.PropertiesAtIndex(0)

dim imageDest as new CGImageDestinationMBS(opath,"public.jpeg",1)

'const orientation = 1 // top left
const orientation = 3 // bottom right

// set globals
imageDest.SetProperties(globalprop)

// now set new orientation
p.value(imageDest.kCGImageDestinationOrientation) = orientation
p.value(imageDest.kCGImageDestinationMergeMetadata) = true

// change tiff dictionary, if present
dim dTIFF as Dictionary = p.lookup(imageSource.kCGImagePropertyTIFFDictionary, nil)
if dTIFF <> nil then
dTIFF.value(imageSource.kCGImagePropertyTIFFOrientation) = orientation
end if

// change iptc dictionary, if present
dim dIPTC as Dictionary = p.lookup(imageSource.kCGImagePropertyIPTCDictionary, nil)
if dIPTC <> nil then
dIPTC.value(imageSource.kCGImagePropertyIPTCImageOrientation) = orientation
end if

// write out image
imageDest.AddImage(img,p)
call imageDest.Finalize
Notes: A dictionary of key-value pairs for an image that uses Tagged Image File Format (TIFF).

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImagePropertyTIFFDocumentName as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Keys for an image that uses Tagged Image File Format (TIFF).
Notes: The document name.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImagePropertyTIFFHostComputer as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Keys for an image that uses Tagged Image File Format (TIFF).
Notes: The computer or operation system used when the image was created.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImagePropertyTIFFImageDescription as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Keys for an image that uses Tagged Image File Format (TIFF).
Notes: The image description.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImagePropertyTIFFMake as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Keys for an image that uses Tagged Image File Format (TIFF).
Notes: The camera or input device make.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImagePropertyTIFFModel as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Keys for an image that uses Tagged Image File Format (TIFF).
Notes: A camera or input device model.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImagePropertyTIFFOrientation as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Keys for an image that uses Tagged Image File Format (TIFF).
Example:
// Change rotation in an image file

// files
dim dpath as folderitem = SpecialFolder.Desktop.Child("test.jpg")
dim opath as folderitem = dpath.parent.Child("output.jpg")

// open source
dim imageSource as new cgimagesourcembs(dpath)

// read image
dim img as cgimagembs = imageSource.createimageatindex(0)

// global properties
dim globalprop as dictionary = imageSource.properties
// per image properties
dim p as Dictionary = imageSource.PropertiesAtIndex(0)

dim imageDest as new CGImageDestinationMBS(opath,"public.jpeg",1)

'const orientation = 1 // top left
const orientation = 3 // bottom right

// set globals
imageDest.SetProperties(globalprop)

// now set new orientation
p.value(imageDest.kCGImageDestinationOrientation) = orientation
p.value(imageDest.kCGImageDestinationMergeMetadata) = true

// change tiff dictionary, if present
dim dTIFF as Dictionary = p.lookup(imageSource.kCGImagePropertyTIFFDictionary, nil)
if dTIFF <> nil then
dTIFF.value(imageSource.kCGImagePropertyTIFFOrientation) = orientation
end if

// change iptc dictionary, if present
dim dIPTC as Dictionary = p.lookup(imageSource.kCGImagePropertyIPTCDictionary, nil)
if dIPTC <> nil then
dIPTC.value(imageSource.kCGImagePropertyIPTCImageOrientation) = orientation
end if

// write out image
imageDest.AddImage(img,p)
call imageDest.Finalize
Notes: The image orientation.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImagePropertyTIFFPhotometricInterpretation as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Keys for an image that uses Tagged Image File Format (TIFF).
Notes: The color space of the image data.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImagePropertyTIFFPrimaryChromaticities as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Keys for an image that uses Tagged Image File Format (TIFF).
Notes: The chromaticities of the primaries of the image.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImagePropertyTIFFResolutionUnit as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Keys for an image that uses Tagged Image File Format (TIFF).
Notes: The units of resolution.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImagePropertyTIFFSoftware as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Keys for an image that uses Tagged Image File Format (TIFF).
Notes: The name and version of the software used for image creation.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImagePropertyTIFFTransferFunction as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Keys for an image that uses Tagged Image File Format (TIFF).
Notes: The transfer function, in tabular format, used to map pixel components from a nonlinear form into a linear form.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImagePropertyTIFFWhitePoint as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Keys for an image that uses Tagged Image File Format (TIFF).
Notes: The white point.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImagePropertyTIFFXResolution as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Keys for an image that uses Tagged Image File Format (TIFF).
Notes: The number of pixels per resolution unit in the image width direction.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImagePropertyTIFFYResolution as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Keys for an image that uses Tagged Image File Format (TIFF).
Notes: The number of pixels per resolution unit in the image height direction.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImageSourceCreateThumbnailFromImageAlways as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 13.1 Yes Yes Yes Yes No
Function: One of the key names for the properties.
Notes: Specifies whether a thumbnail should be created from the full image even if a thumbnail is present in the image source file. The thumbnail will be created from the full image, subject to the limit specified by kCGImageSourceThumbnailMaxPixelSize --- if a maximum pixel size isn't specified, then the thumbnail will be the size of the full image, which probably isn't what you want. The value of this key must be a Boolean; the default value of this key is False.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImageSourceCreateThumbnailFromImageIfAbsent as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 13.1 Yes Yes Yes Yes No
Function: One of the key names for the properties.
Notes: Specifies whether a thumbnail should be automatically created for an image if a thumbnail isn't present in the image source file. The thumbnail will be created from the full image, subject to the limit specified by kCGImageSourceThumbnailMaxPixelSize---if a maximum pixel size isn't specified, then the thumbnail will be the size of the full image, which probably isn't what you want. The value of this key must be a Boolean; the default value of this key is False.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImageSourceCreateThumbnailWithTransform as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 13.1 Yes Yes Yes Yes No
Function: One of the key names for the properties.
Notes: Specifies whether the thumbnail should be rotated and scaled according to the orientation and pixel aspect ratio of the full image. The value of this key must be a Boolean; the default value of this key is False.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImageSourceShouldAllowFloat as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 13.1 Yes Yes Yes Yes No
Function: One of the key names for the properties.
Notes: Specifies whether the image should be returned as a floating point CGImage if supported by the file format. Extended range floating point CGImage may require additional processing to render pleasingly. The value of this key must be a Boolean; the default value is False.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImageSourceShouldCache as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 13.1 Yes Yes Yes Yes No
Function: One of the key names for the properties.
Notes: Specifies whether the image should be cached in a decoded form. The value of this key must be a Boolean; the default value is False.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImageSourceShouldCacheImmediately as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 17.0 Yes No No Yes, macOS only No
Function: One of the keys for the options dictionary.
Notes:
Specifies whether image decoding and caching should happen at image creation time.
The value of this key must be a boolean. The default value is kCFBooleanFalse (image decoding will happen at rendering time).

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImageSourceThumbnailMaxPixelSize as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 13.1 Yes Yes Yes Yes No
Function: One of the key names for the properties.
Notes: Specifies the maximum width and height in pixels of a thumbnail. If this this key is not specified, the width and height of a thumbnail is not limited and thumbnails may be as big as the image itself. If present, this value of this key must be an Integer.

Feedback, Comments & Corrections

CGImageSourceMBS.kCGImageSourceTypeIdentifierHint as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 13.1 Yes Yes Yes Yes No
Function: One of the key names for the properties.
Notes: Specifies the "best guess" of the type identifier for the format of the image source file. If specified, the value of this key must be a String. For more information about type identifiers, see "UTType.h" in the Application Services framework.

Feedback, Comments & Corrections

CGImageSourceMBS.TypeIdentifiers as string()
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Returns an array of uniform type identifiers (UTIs) that are supported for image sources.
Example:
dim s(-1) as string = CGImageSourceMBS.TypeIdentifiers

MsgBox Join(s,EndOfLine)

// shows:
//
// public.png
// public.jpeg
// com.compuserve.gif
// public.jpeg-2000
// com.adobe.raw-image
// com.leafamerica.raw-image
// com.hasselblad.fff-raw-image
// com.hasselblad.3fr-raw-image
// com.nikon.raw-image
// com.nikon.nrw-raw-image
// com.pentax.raw-image
// com.sony.sr2-raw-image
// com.sony.arw-raw-image
// com.epson.raw-image
// com.kodak.raw-image
// public.tiff
// com.apple.icns
// com.canon.tif-raw-image
// com.canon.cr2-raw-image
// com.canon.crw-raw-image
// com.fuji.raw-image
// com.panasonic.raw-image
// com.panasonic.rw2-raw-image
// com.panasonic.rwl-raw-image
// com.leica.pwl-raw-image
// com.konicaminolta.raw-image
// com.olympus.raw-image
// com.olympus.raw-image
// com.sony.raw-image
// com.adobe.photoshop-image
// com.adobe.pdf
// com.adobe.illustrator.ai-image
// com.microsoft.ico
// com.microsoft.bmp
// public.xbitmap-image
// com.microsoft.cur
// com.apple.pict
// com.truevision.tga-image
// com.sgi.sgi-image
// com.apple.quicktime-image
// com.kodak.flashpix-image
// com.apple.macpaint-image
// com.ilm.openexr-image
// public.radiance
Notes:
Returns an array of the UTIs that are supported for image sources.

See Uniform Type Identifiers Overview for a list of system-declared and third-party UTIs.

Available in Mac OS X version 10.4 and later.

Feedback, Comments & Corrections

Previous items

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





Links
MBS FileMaker blog