Bewerken

Delen via


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
CGDataProvider
Implements

Constructors

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(IntPtr)
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

Handle

Handle (pointer) to the unmanaged object representation.

Methods

CopyData()

Returns a copy of the provider's data.

Dispose()

Releases the resources used by the CGDataProvider object.

Dispose(Boolean)

Releases the resources used by the CGDataProvider object.

Finalize()

Finalizer for the CGDataProvider object

FromFile(String)

Creates a CGDataProvider from an on-disk file.

Applies to