Table of Contents

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

int

PrimaryImageIndex

Get index of primary image.

public int PrimaryImageIndex { get; }

Property Value

int

Status

Get status of image source.

public CGImageSourceStatus Status { get; }

Property Value

CGImageSourceStatus

Methods

CopyPropertiesAtIndex(int, CFDictionary?)

Get properties of the image at a specified location.

public CFDictionary? CopyPropertiesAtIndex(int index, CFDictionary? options = null)

Parameters

index int

Location.

options CFDictionary

Options.

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

index int

Index of image.

Returns

CGImage

Image.

FromData(CFData)

Create CGImageSource from CFData.

public static CGImageSource FromData(CFData data)

Parameters

data CFData

Data.

Returns

CGImageSource

CGImageSource.

FromFile(string)

Create CGImageSource from file.

public static CGImageSource FromFile(string fileName)

Parameters

fileName string

File name.

Returns

CGImageSource

CGImageSource.

FromStream(Stream)

Create CGImageSource from stream.

public static CGImageSource FromStream(Stream stream)

Parameters

stream Stream

Stream.

Returns

CGImageSource

CGImageSource.