iOS Guides | Samples

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: CoreGraphics
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of CoreGraphics.CGDataProvider are listed below.

See Also: Object

Public Constructors

Creates a new CGDataProvider from the provided data.
Creates a new CGDataProvider from the data at the specified url.
Creates a new CGDataProvider from the data in the provided buffer.
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.
Creates a new CGDataProvider from the data at the specified memoryBlock.
Creates a CGDataProvider from an in-memory block.

Public Properties

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

Public Methods

CopyData() : NSData
Returns a copy of the provider's data.
Dispose()
Releases the resources 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 resources used by the CGDataProvider object.