Platforms to show: All Mac Windows Linux Cross-Platform
CGImageSourceMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | CoreGraphics | MBS MacCG Plugin | 9.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CGImageSource objects, available in Mac OS X v10.4 or later, abstract the data-reading task. An image source can read image data from a URL, a file or a string.
After creating a CGImageSource object for the appropriate source, you can obtain images, thumbnails, image properties, and other image information using CGImageSource functions.
- 4 properties
- 11 methods
- method Constructor(data as string, options as dictionary = nil)
- method Constructor(file as folderitem, options as dictionary = nil)
- method Constructor(options as dictionary = nil)
- method CreateImageAtIndex(index as Integer, options as dictionary = nil) as CGImageMBS
- method CreateThumbnailAtIndex(index as Integer, options as dictionary = nil) as CGImageMBS
- method Properties(options as dictionary = nil) as dictionary
- method PropertiesAtIndex(index as Integer, options as dictionary = nil) as dictionary
- method PropertiesAtIndexCF(index as Integer, options as Variant = nil) as Variant
- method PropertiesCF(options as Variant = nil) as Variant
- method StatusAtIndex(index as Integer) as Integer
- method UpdateData(data as string, final as boolean)
- 301 shared methods
- shared method CreateIncremental(options as dictionary=nil) as CGImageSourceMBS
- shared method CreateThumbnailMT(data as MemoryBlock, ImageIndex as integer = 0, Options as dictionary = nil) as CGImageMBS
- shared method CreateThumbnailMT(data as String, ImageIndex as integer = 0, Options as dictionary = nil) as CGImageMBS
- shared method CreateThumbnailMT(file as FolderItem, ImageIndex as integer = 0, Options as dictionary = nil) as CGImageMBS
- shared method CreateWithData(data as string, options as dictionary=nil) as CGImageSourceMBS
- shared method CreateWithFile(file as folderitem, options as dictionary=nil) as CGImageSourceMBS
- shared method CreateWithURL(url as string, options as dictionary=nil) as CGImageSourceMBS
- shared method kCGImageProperty8BIMDictionary as string
- shared method kCGImageProperty8BIMLayerNames as string
- shared method kCGImagePropertyCIFFCameraSerialNumber as string
- shared method kCGImagePropertyCIFFContinuousDrive as string
- shared method kCGImagePropertyCIFFDescription as string
- shared method kCGImagePropertyCIFFDictionary as string
- shared method kCGImagePropertyCIFFFirmware as string
- shared method kCGImagePropertyCIFFFlashExposureComp as string
- shared method kCGImagePropertyCIFFFocusMode as string
- shared method kCGImagePropertyCIFFImageFileName as string
- shared method kCGImagePropertyCIFFImageName as string
- shared method kCGImagePropertyCIFFImageSerialNumber as string
- shared method kCGImagePropertyCIFFLensMaxMM as string
- shared method kCGImagePropertyCIFFLensMinMM as string
- shared method kCGImagePropertyCIFFLensModel as string
- shared method kCGImagePropertyCIFFMeasuredEV as string
- shared method kCGImagePropertyCIFFMeteringMode as string
- shared method kCGImagePropertyCIFFOwnerName as string
- shared method kCGImagePropertyCIFFRecordID as string
- shared method kCGImagePropertyCIFFReleaseMethod as string
- shared method kCGImagePropertyCIFFReleaseTiming as string
- shared method kCGImagePropertyCIFFSelfTimingTime as string
- shared method kCGImagePropertyCIFFShootingMode as string
- shared method kCGImagePropertyCIFFWhiteBalanceIndex as string
- shared method kCGImagePropertyColorModel as string
- shared method kCGImagePropertyColorModelCMYK as string
- shared method kCGImagePropertyColorModelGray as string
- shared method kCGImagePropertyColorModelLab as string
- shared method kCGImagePropertyColorModelRGB as string
- shared method kCGImagePropertyDepth as string
- shared method kCGImagePropertyDNGBackwardVersion as string
- shared method kCGImagePropertyDNGCameraSerialNumber as string
- shared method kCGImagePropertyDNGDictionary as string
- shared method kCGImagePropertyDNGLensInfo as string
- shared method kCGImagePropertyDNGLocalizedCameraModel as string
- shared method kCGImagePropertyDNGUniqueCameraModel as string
- shared method kCGImagePropertyDNGVersion as string
- shared method kCGImagePropertyDPIHeight as string
- shared method kCGImagePropertyDPIWidth as string
- shared method kCGImagePropertyExifApertureValue as string
- shared method kCGImagePropertyExifAuxDictionary as string
- shared method kCGImagePropertyExifAuxFirmware as string
- shared method kCGImagePropertyExifAuxFlashCompensation as string
- shared method kCGImagePropertyExifAuxImageNumber as string
- shared method kCGImagePropertyExifAuxLensID as string
- shared method kCGImagePropertyExifAuxLensInfo as string
- shared method kCGImagePropertyExifAuxLensModel as string
- shared method kCGImagePropertyExifAuxLensSerialNumber as string
- shared method kCGImagePropertyExifAuxOwnerName as string
- shared method kCGImagePropertyExifAuxSerialNumber as string
- shared method kCGImagePropertyExifBrightnessValue as string
- shared method kCGImagePropertyExifCFAPattern as string
- shared method kCGImagePropertyExifColorSpace as string
- shared method kCGImagePropertyExifComponentsConfiguration as string
- shared method kCGImagePropertyExifCompressedBitsPerPixel as string
- shared method kCGImagePropertyExifContrast as string
- shared method kCGImagePropertyExifCustomRendered as string
- shared method kCGImagePropertyExifDateTimeDigitized as string
- shared method kCGImagePropertyExifDateTimeOriginal as string
- shared method kCGImagePropertyExifDeviceSettingDescription as string
- shared method kCGImagePropertyExifDictionary as string
- shared method kCGImagePropertyExifDigitalZoomRatio as string
- shared method kCGImagePropertyExifExposureBiasValue as string
- shared method kCGImagePropertyExifExposureIndex as string
- shared method kCGImagePropertyExifExposureMode as string
- shared method kCGImagePropertyExifExposureProgram as string
- shared method kCGImagePropertyExifExposureTime as string
- shared method kCGImagePropertyExifFileSource as string
- shared method kCGImagePropertyExifFlash as string
- shared method kCGImagePropertyExifFlashEnergy as string
- shared method kCGImagePropertyExifFlashPixVersion as string
- shared method kCGImagePropertyExifFNumber as string
- shared method kCGImagePropertyExifFocalLength as string
- shared method kCGImagePropertyExifFocalLenIn35mmFilm as string
- shared method kCGImagePropertyExifFocalPlaneResolutionUnit as string
- shared method kCGImagePropertyExifFocalPlaneXResolution as string
- shared method kCGImagePropertyExifFocalPlaneYResolution as string
- shared method kCGImagePropertyExifGainControl as string
- shared method kCGImagePropertyExifGamma as string
- shared method kCGImagePropertyExifImageUniqueID as string
- shared method kCGImagePropertyExifISOSpeedRatings as string
- shared method kCGImagePropertyExifLightSource as string
- shared method kCGImagePropertyExifMakerNote as string
- shared method kCGImagePropertyExifMaxApertureValue as string
- shared method kCGImagePropertyExifMeteringMode as string
- shared method kCGImagePropertyExifOECF as string
- shared method kCGImagePropertyExifPixelXDimension as string
- shared method kCGImagePropertyExifPixelYDimension as string
- shared method kCGImagePropertyExifRelatedSoundFile as string
- shared method kCGImagePropertyExifSaturation as string
- shared method kCGImagePropertyExifSceneCaptureType as string
- shared method kCGImagePropertyExifSceneType as string
- shared method kCGImagePropertyExifSensingMethod as string
- shared method kCGImagePropertyExifSharpness as string
- shared method kCGImagePropertyExifShutterSpeedValue as string
- shared method kCGImagePropertyExifSpatialFrequencyResponse as string
- shared method kCGImagePropertyExifSpectralSensitivity as string
- shared method kCGImagePropertyExifSubjectArea as string
- shared method kCGImagePropertyExifSubjectDistance as string
- shared method kCGImagePropertyExifSubjectDistRange as string
- shared method kCGImagePropertyExifSubjectLocation as string
- shared method kCGImagePropertyExifSubsecTime as string
- shared method kCGImagePropertyExifSubsecTimeDigitized as string
- shared method kCGImagePropertyExifSubsecTimeOriginal as string
- shared method kCGImagePropertyExifUserComment as string
- shared method kCGImagePropertyExifVersion as string
- shared method kCGImagePropertyExifWhiteBalance as string
- shared method kCGImagePropertyFileSize as string
- shared method kCGImagePropertyGIFDelayTime as string
- shared method kCGImagePropertyGIFDictionary as string
- shared method kCGImagePropertyGIFHasGlobalColorMap as string
- shared method kCGImagePropertyGIFImageColorMap as string
- shared method kCGImagePropertyGIFLoopCount as string
- shared method kCGImagePropertyGIFUnclampedDelayTime as string
- shared method kCGImagePropertyGPSAltitude as string
- shared method kCGImagePropertyGPSAltitudeRef as string
- shared method kCGImagePropertyGPSAreaInformation as string
- shared method kCGImagePropertyGPSDateStamp as string
- shared method kCGImagePropertyGPSDestBearing as string
- shared method kCGImagePropertyGPSDestBearingRef as string
- shared method kCGImagePropertyGPSDestDistance as string
- shared method kCGImagePropertyGPSDestDistanceRef as string
- shared method kCGImagePropertyGPSDestLatitude as string
- shared method kCGImagePropertyGPSDestLatitudeRef as string
- shared method kCGImagePropertyGPSDestLongitude as string
- shared method kCGImagePropertyGPSDestLongitudeRef as string
- shared method kCGImagePropertyGPSDictionary as string
- shared method kCGImagePropertyGPSDifferental as string
- shared method kCGImagePropertyGPSDOP as string
- shared method kCGImagePropertyGPSImgDirection as string
- shared method kCGImagePropertyGPSImgDirectionRef as string
- shared method kCGImagePropertyGPSLatitude as string
- shared method kCGImagePropertyGPSLatitudeRef as string
- shared method kCGImagePropertyGPSLongitude as string
- shared method kCGImagePropertyGPSLongitudeRef as string
- shared method kCGImagePropertyGPSMapDatum as string
- shared method kCGImagePropertyGPSMeasureMode as string
- shared method kCGImagePropertyGPSProcessingMethod as string
- shared method kCGImagePropertyGPSSatellites as string
- shared method kCGImagePropertyGPSSpeed as string
- shared method kCGImagePropertyGPSSpeedRef as string
- shared method kCGImagePropertyGPSStatus as string
- shared method kCGImagePropertyGPSTimeStamp as string
- shared method kCGImagePropertyGPSTrack as string
- shared method kCGImagePropertyGPSTrackRef as string
- shared method kCGImagePropertyGPSVersion as string
- shared method kCGImagePropertyHasAlpha as string
- shared method kCGImagePropertyIPTCActionAdvised as string
- shared method kCGImagePropertyIPTCByline as string
- shared method kCGImagePropertyIPTCBylineTitle as string
- shared method kCGImagePropertyIPTCCaptionAbstract as string
- shared method kCGImagePropertyIPTCCategory as string
- shared method kCGImagePropertyIPTCCity as string
- shared method kCGImagePropertyIPTCContact as string
- shared method kCGImagePropertyIPTCContactInfoAddress as string
- shared method kCGImagePropertyIPTCContactInfoCity as string
- shared method kCGImagePropertyIPTCContactInfoCountry as string
- shared method kCGImagePropertyIPTCContactInfoEmails as string
- shared method kCGImagePropertyIPTCContactInfoPhones as string
- shared method kCGImagePropertyIPTCContactInfoPostalCode as string
- shared method kCGImagePropertyIPTCContactInfoStateProvince as string
- shared method kCGImagePropertyIPTCContactInfoWebURLs as string
- shared method kCGImagePropertyIPTCContentLocationCode as string
- shared method kCGImagePropertyIPTCContentLocationName as string
- shared method kCGImagePropertyIPTCCopyrightNotice as string
- shared method kCGImagePropertyIPTCCountryPrimaryLocationCode as string
- shared method kCGImagePropertyIPTCCountryPrimaryLocationName as string
- shared method kCGImagePropertyIPTCCreatorContactInfo as string
- shared method kCGImagePropertyIPTCCredit as string
- shared method kCGImagePropertyIPTCDateCreated as string
- shared method kCGImagePropertyIPTCDictionary as string
- shared method kCGImagePropertyIPTCDigitalCreationDate as string
- shared method kCGImagePropertyIPTCDigitalCreationTime as string
- shared method kCGImagePropertyIPTCEditorialUpdate as string
- shared method kCGImagePropertyIPTCEditStatus as string
- shared method kCGImagePropertyIPTCExpirationDate as string
- shared method kCGImagePropertyIPTCExpirationTime as string
- shared method kCGImagePropertyIPTCFixtureIdentifier as string
- shared method kCGImagePropertyIPTCHeadline as string
- shared method kCGImagePropertyIPTCImageOrientation as string
- shared method kCGImagePropertyIPTCImageType as string
- shared method kCGImagePropertyIPTCKeywords as string
- shared method kCGImagePropertyIPTCLanguageIdentifier as string
- shared method kCGImagePropertyIPTCObjectAttributeReference as string
- shared method kCGImagePropertyIPTCObjectCycle as string
- shared method kCGImagePropertyIPTCObjectName as string
- shared method kCGImagePropertyIPTCObjectTypeReference as string
- shared method kCGImagePropertyIPTCOriginalTransmissionReference as string
- shared method kCGImagePropertyIPTCOriginatingProgram as string
- shared method kCGImagePropertyIPTCProgramVersion as string
- shared method kCGImagePropertyIPTCProvinceState as string
- shared method kCGImagePropertyIPTCReferenceDate as string
- shared method kCGImagePropertyIPTCReferenceNumber as string
- shared method kCGImagePropertyIPTCReferenceService as string
- shared method kCGImagePropertyIPTCReleaseDate as string
- shared method kCGImagePropertyIPTCReleaseTime as string
- shared method kCGImagePropertyIPTCRightsUsageTerms as string
- shared method kCGImagePropertyIPTCScene as string
- shared method kCGImagePropertyIPTCSource as string
- shared method kCGImagePropertyIPTCSpecialInstructions as string
- shared method kCGImagePropertyIPTCStarRating as string
- shared method kCGImagePropertyIPTCSubjectReference as string
- shared method kCGImagePropertyIPTCSubLocation as string
- shared method kCGImagePropertyIPTCSupplementalCategory as string
- shared method kCGImagePropertyIPTCTimeCreated as string
- shared method kCGImagePropertyIPTCUrgency as string
- shared method kCGImagePropertyIPTCWriterEditor as string
- shared method kCGImagePropertyIsFloat as string
- shared method kCGImagePropertyIsIndexed as string
- shared method kCGImagePropertyJFIFDensityUnit as string
- shared method kCGImagePropertyJFIFDictionary as string
- shared method kCGImagePropertyJFIFIsProgressive as string
- shared method kCGImagePropertyJFIFVersion as string
- shared method kCGImagePropertyJFIFXDensity as string
- shared method kCGImagePropertyJFIFYDensity as string
- shared method kCGImagePropertyMakerCanonAspectRatioInfo as string
- shared method kCGImagePropertyMakerCanonCameraSerialNumber as string
- shared method kCGImagePropertyMakerCanonContinuousDrive as string
- shared method kCGImagePropertyMakerCanonDictionary as string
- shared method kCGImagePropertyMakerCanonFirmware as string
- shared method kCGImagePropertyMakerCanonFlashExposureComp as string
- shared method kCGImagePropertyMakerCanonImageSerialNumber as string
- shared method kCGImagePropertyMakerCanonLensModel as string
- shared method kCGImagePropertyMakerCanonOwnerName as string
- shared method kCGImagePropertyMakerFujiDictionary as string
- shared method kCGImagePropertyMakerMinoltaDictionary as string
- shared method kCGImagePropertyMakerNikonCameraSerialNumber as string
- shared method kCGImagePropertyMakerNikonColorMode as string
- shared method kCGImagePropertyMakerNikonDictionary as string
- shared method kCGImagePropertyMakerNikonDigitalZoom as string
- shared method kCGImagePropertyMakerNikonFlashExposureComp as string
- shared method kCGImagePropertyMakerNikonFlashSetting as string
- shared method kCGImagePropertyMakerNikonFocusDistance as string
- shared method kCGImagePropertyMakerNikonFocusMode as string
- shared method kCGImagePropertyMakerNikonImageAdjustment as string
- shared method kCGImagePropertyMakerNikonISOSelection as string
- shared method kCGImagePropertyMakerNikonISOSetting as string
- shared method kCGImagePropertyMakerNikonLensAdapter as string
- shared method kCGImagePropertyMakerNikonLensInfo as string
- shared method kCGImagePropertyMakerNikonLensType as string
- shared method kCGImagePropertyMakerNikonQuality as string
- shared method kCGImagePropertyMakerNikonSharpenMode as string
- shared method kCGImagePropertyMakerNikonShootingMode as string
- shared method kCGImagePropertyMakerNikonShutterCount as string
- shared method kCGImagePropertyMakerNikonWhiteBalanceMode as string
- shared method kCGImagePropertyMakerOlympusDictionary as string
- shared method kCGImagePropertyMakerPentaxDictionary as string
- shared method kCGImagePropertyOrientation as string
- shared method kCGImagePropertyPixelHeight as string
- shared method kCGImagePropertyPixelWidth as string
- shared method kCGImagePropertyPNGAuthor as string
- shared method kCGImagePropertyPNGChromaticities as string
- shared method kCGImagePropertyPNGCopyright as string
- shared method kCGImagePropertyPNGCreationTime as string
- shared method kCGImagePropertyPNGDescription as string
- shared method kCGImagePropertyPNGDictionary as string
- shared method kCGImagePropertyPNGGamma as string
- shared method kCGImagePropertyPNGInterlaceType as string
- shared method kCGImagePropertyPNGModificationTime as string
- shared method kCGImagePropertyPNGSoftware as string
- shared method kCGImagePropertyPNGsRGBIntent as string
- shared method kCGImagePropertyPNGTitle as string
- shared method kCGImagePropertyPNGXPixelsPerMeter as string
- shared method kCGImagePropertyPNGYPixelsPerMeter as string
- shared method kCGImagePropertyProfileName as string
- shared method kCGImagePropertyRawDictionary as string
- shared method kCGImagePropertyTIFFArtist as string
- shared method kCGImagePropertyTIFFCompression as string
- shared method kCGImagePropertyTIFFCopyright as string
- shared method kCGImagePropertyTIFFDateTime as string
- shared method kCGImagePropertyTIFFDictionary as string
- shared method kCGImagePropertyTIFFDocumentName as string
- shared method kCGImagePropertyTIFFHostComputer as string
- shared method kCGImagePropertyTIFFImageDescription as string
- shared method kCGImagePropertyTIFFMake as string
- shared method kCGImagePropertyTIFFModel as string
- shared method kCGImagePropertyTIFFOrientation as string
- shared method kCGImagePropertyTIFFPhotometricInterpretation as string
- shared method kCGImagePropertyTIFFPrimaryChromaticities as string
- shared method kCGImagePropertyTIFFResolutionUnit as string
- shared method kCGImagePropertyTIFFSoftware as string
- shared method kCGImagePropertyTIFFTransferFunction as string
- shared method kCGImagePropertyTIFFWhitePoint as string
- shared method kCGImagePropertyTIFFXResolution as string
- shared method kCGImagePropertyTIFFYResolution as string
- shared method kCGImageSourceCreateThumbnailFromImageAlways as string
- shared method kCGImageSourceCreateThumbnailFromImageIfAbsent as string
- shared method kCGImageSourceCreateThumbnailWithTransform as string
- shared method kCGImageSourceShouldAllowFloat as string
- shared method kCGImageSourceShouldCache as string
- shared method kCGImageSourceShouldCacheImmediately as string
- shared method kCGImageSourceThumbnailMaxPixelSize as string
- shared method kCGImageSourceTypeIdentifierHint as string
- shared method TypeIdentifiers as string()
- 6 constants
Constants
Constant | Value | Description |
---|---|---|
kCGImageStatusComplete | 0 |
One of the status constants.
The operation is complete. |
kCGImageStatusIncomplete | -1 |
One of the status constants.
The operation is not complete. |
kCGImageStatusInvalidData | -4 |
One of the status constants.
The data is not valid. |
kCGImageStatusReadingHeader | -2 |
One of the status constants.
In the process of reading the header. |
kCGImageStatusUnexpectedEOF | -5 |
One of the status constants.
The end of the file was encountered unexpectedly. |
kCGImageStatusUnknownType | -3 |
One of the status constants.
The image is an unknown type. |
This class has no sub classes.
Some methods using this class:
- CGImageDestinationMBS.AddImageFromSource(source as CGImageSourceMBS, index as Integer, options as dictionary = nil)
- CGImageDestinationMBS.AddImageFromSourceCF(source as CGImageSourceMBS, index as Integer, options as Variant = nil)
Some examples using this class:
- /MacCG/CGImageSource/CGImageSource Convert
- /MacCG/CGImageSource/CGImageSource Properties
- /MacCG/CGImageSource/CGImageSource Thumbnails Threaded
- /MacOSX/Image Thumbnail
Blog Entries
- Reading JPEG Thumbnails from EXIF
- Multithreaded plugin functions can increase speed of Xojo application
- MonkeyBread Software Releases the MBS Xojo Plugins in version 19.1
- MBS Xojo Plugins, version 19.1pr2
- CGImageSourceMBS CreateThumbnailMT method for Xojo
- MonkeyBread Software Releases the MBS Xojo plug-ins in version 17.0
- Tip of day: Load ICC profile on OS X for any image format with CGImageSource
- Tip of the day: Edit IPTC data in JPEG file with CGImageSource/CGImageDestination
- Tip of the day: Quickly query image size
- MBS REALbasic plug-ins version 9.5
Xojo Developer Magazine
Release notes
- Version 19.1
- Added CGImageSourceMBS.CreateThumbnailMT to create thumbnails threaded.
- Version 17.0
- Added CGImageSourceMBS kCGImageSourceShouldCacheImmediately.
The items on this page are in the following plugins: MBS MacCG Plugin.
CGImageMetadataTagMBS - CGLayerMBS