Mac Guides | Samples

MonoMac.CoreGraphics.CGDataProvider Class

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

See Also: CGDataProvider

Syntax

public class CGDataProvider : INativeObject, IDisposable

Remarks

Requirements

Namespace: MonoMac.CoreGraphics
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0

The members of MonoMac.CoreGraphics.CGDataProvider are listed below.

See Also: Object

Public Constructors

Exposes the contents of the file as a CGDataProvider.
Creates a CGDataProvider from an in-memory block.
Creates a CGDataProvider that exposes the byte array starting at the specified offset for the specified amount of bytes. This is merely a wrapper around
Creates a CGDataProvider from an in-memory block.

Public Properties

[read-only]
HandleIntPtr. Handle (pointer) to the unmanaged object representation.

Public Methods

CopyData() : NSData
Dispose()
Releases the resourced used by the CGDataProvider object.
Finalize()
Finalizer for the CGDataProvider object
static
FromFile(String) : CGDataProvider
Creates a CGDataProvider from an on-disk file.

Protected Methods

Dispose(Boolean)
Releases the resourced used by the CGDataProvider object.