Language

CGDataProvider Class

Definition

A class that wraps a data source and exposes it to the CGImage class.

public class CGDataProvider : CoreFoundation.NativeObject
type CGDataProvider = class
    inherit NativeObject
Inheritance

Constructors

Name Description
CGDataProvider(Byte[], Int32, Int32)

Creates a CGDataProvider that exposes the byte array starting at the specified offset for the specified amount of bytes.

CGDataProvider(Byte[])

Creates a new CGDataProvider from the data in the provided buffer.

CGDataProvider(IntPtr, Int32, Action<IntPtr>)

Creates a new CGDataProvider from the data at the specified memoryBlock.

CGDataProvider(IntPtr, Int32, Boolean)

Creates a CGDataProvider from an in-memory block.

CGDataProvider(IntPtr, Int32)

Creates a CGDataProvider from an in-memory block.

CGDataProvider(NSData)

Creates a new CGDataProvider from the provided data.

CGDataProvider(NSUrl)

Creates a new CGDataProvider from the data at the specified url.

CGDataProvider(String)

Exposes the contents of the file as a CGDataProvider.

Properties

Name Description
Handle (Inherited from DisposableObject)
Owns (Inherited from DisposableObject)

Methods

Name Description
ClearHandle() (Inherited from DisposableObject)
CopyData()

Returns a copy of the provider's data.

Dispose()

Releases all resources used by this object.

(Inherited from DisposableObject)
Dispose(Boolean)

Releases the resources used by this object.

(Inherited from NativeObject)
Equals(Object) (Inherited from DisposableObject)
FromFile(String)

Creates a CGDataProvider from an on-disk file.

GetCheckedHandle() (Inherited from DisposableObject)
GetHashCode() (Inherited from DisposableObject)
InitializeHandle(NativeHandle) (Inherited from DisposableObject)
Release()
Retain()

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to