CGDataProvider CGDataProvider Class

Definition

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

public class CGDataProvider : IDisposable, ObjCRuntime.INativeObject
type CGDataProvider = class
    interface INativeObject
    interface IDisposable
Inheritance
CGDataProviderCGDataProvider
Implements

Constructors

CGDataProvider(NSData) CGDataProvider(NSData)

Creates a new CGDataProvider from the provided data.

CGDataProvider(NSUrl) CGDataProvider(NSUrl)

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

CGDataProvider(Byte[]) CGDataProvider(Byte[])

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

CGDataProvider(IntPtr) CGDataProvider(IntPtr)
CGDataProvider(String) CGDataProvider(String)

Exposes the contents of the file as a CGDataProvider.

CGDataProvider(IntPtr, Int32) CGDataProvider(IntPtr, Int32)

Creates a CGDataProvider from an in-memory block.

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

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

CGDataProvider(IntPtr, Int32, Action<IntPtr>) CGDataProvider(IntPtr, Int32, Action<IntPtr>)

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

CGDataProvider(IntPtr, Int32, Boolean) CGDataProvider(IntPtr, Int32, Boolean)

Creates a CGDataProvider from an in-memory block.

Properties

Handle Handle

Handle (pointer) to the unmanaged object representation.

Methods

CopyData() CopyData()

Returns a copy of the provider's data.

Dispose() Dispose()

Releases the resources used by the CGDataProvider object.

Dispose(Boolean) Dispose(Boolean)

Releases the resources used by the CGDataProvider object.

Finalize() Finalize()

Finalizer for the CGDataProvider object

FromFile(String) FromFile(String)

Creates a CGDataProvider from an on-disk file.

Applies to