Platforms to show: All Mac Windows Linux Cross-Platform
PHImageRequestOptionsMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Photos | MBS Mac64bit Plugin | 20.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Available on macOS 10.13 or newer.
- 9 properties
- property allowSecondaryDegradedImage as Boolean New in 25.1
- property DeliveryMode as Integer
- property Handle as Integer
- property NetworkAccessAllowed as Boolean
- property normalizedCropRect as CGRectMBS
- property ProgressHandler as ProgressHandlerMBS
- property ResizeMode as Integer
- property Synchronous as Boolean
- property Version as Integer
- 4 methods
- method Constructor
- method copy as PHImageRequestOptionsMBS
- method Destructor
- method SetProgressHandler(ProgressHandler as ProgressHandlerMBS, tag as variant = nil)
- shared method available as boolean
- delegate ProgressHandlerMBS(progress as double, error as NSErrorMBS, byref stop as boolean, info as Dictionary, tag as Variant)
- 9 constants
Delivery Modes
Constant | Value | Description |
---|---|---|
DeliveryModeFastFormat | 2 |
Photos provides only a fast-loading image, possibly sacrificing image quality. |
DeliveryModeHighQualityFormat | 1 |
Photos provides only the highest-quality image available, regardless of how much time it takes to load. |
DeliveryModeOpportunistic | 0 |
Photos automatically provides one or more results in order to balance image quality and responsiveness. |
Resize Mode
Constant | Value | Description |
---|---|---|
ResizeModeExact | 2 | Photos resizes the image to match the target size exactly. more |
ResizeModeFast | 1 | Photos efficiently resizes the image to a size similar to, or slightly larger than, the target size. more |
ResizeModeNone | 0 |
Photos does not resize the image asset. |
Version Modes
Constant | Value | Description |
---|---|---|
VersionCurrent | 0 |
Request the most recent version of the image asset (the one that reflects all edits). |
VersionOriginal | 2 |
Request the original, highest-fidelity version of the image asset. |
VersionUnadjusted | 1 |
Request a version of the image asset without adjustments. |
This class has no sub classes.
Blog Entries
Release notes
- Version 25.1
- Added allowSecondaryDegradedImage property to PHImageRequestOptionsMBS class.
Some methods using this class:
- PHCachingImageManagerMBS.startCachingImagesForAssets(assets() as PHAssetMBS, targetSize as CGSizeMBS, contentMode as Integer, options as PHImageRequestOptionsMBS = nil)
- PHCachingImageManagerMBS.stopCachingImagesForAssets(assets() as PHAssetMBS, targetSize as CGSizeMBS, contentMode as Integer, options as PHImageRequestOptionsMBS = nil)
- PHImageManagerMBS.RequestImageDataAndOrientationForAsset(asset as PHAssetMBS, options as PHImageRequestOptionsMBS, CompletionHandler as RequestImageForAssetCompletedMBS, tag as Variant = nil) as Integer
- PHImageManagerMBS.RequestImageForAsset(asset as PHAssetMBS, targetSize as CGSizeMBS, contentMode as Integer, options as PHImageRequestOptionsMBS, CompletionHandler as RequestImageForAssetCompletedMBS, tag as Variant = nil) as Integer
- PHImageManagerMBS.RequestImageForAssetSync(asset as PHAssetMBS, targetSize as CGSizeMBS, contentMode as Integer, options as PHImageRequestOptionsMBS, byref Info as Dictionary) as NSImageMBS
Some examples using this class:
Some related classes:
- class CGRectMBS
- class CGSizeMBS
- class NSErrorMBS
- class NSImageMBS
- class PHAssetMBS
- class PHCachingImageManagerMBS
- class PHImageManagerMBS
- class PHVideoRequestOptionsMBS
The items on this page are in the following plugins: MBS Mac64bit Plugin.
PHImageManagerMBS - PHLivePhotoEditingContextMBS
