Class CGImageSource
- Namespace
- CarinaStudio.MacOS.ImageIO
- Assembly
- CarinaStudio.AppBase.MacOS.dll
CGImageSource.
public class CGImageSource : CFObject, IShareableDisposable<CFObject>, IDisposable
- Inheritance
-
CGImageSource
- Implements
- Inherited Members
- Extension Methods
Properties
ImageCount
Get number of images.
public int ImageCount { get; }
Property Value
PrimaryImageIndex
Get index of primary image.
public int PrimaryImageIndex { get; }
Property Value
Status
Get status of image source.
public CGImageSourceStatus Status { get; }
Property Value
Methods
CopyPropertiesAtIndex(int, CFDictionary?)
Get properties of the image at a specified location.
public CFDictionary? CopyPropertiesAtIndex(int index, CFDictionary? options = null)
Parameters
indexintLocation.
optionsCFDictionaryOptions.
Returns
- CFDictionary
Properties got from image source.
CreateImage()
Create primary image.
public CGImage CreateImage()
Returns
- CGImage
Image.
CreateImage(int)
Create image.
public CGImage CreateImage(int index)
Parameters
indexintIndex of image.
Returns
- CGImage
Image.
FromData(CFData)
Create CGImageSource from CFData.
public static CGImageSource FromData(CFData data)
Parameters
dataCFDataData.
Returns
FromFile(string)
Create CGImageSource from file.
public static CGImageSource FromFile(string fileName)
Parameters
fileNamestringFile name.
Returns
FromStream(Stream)
Create CGImageSource from stream.
public static CGImageSource FromStream(Stream stream)
Parameters
streamStreamStream.