Mac Guides | Samples

MonoMac.CoreGraphics.CGDataProvider Constructor

Creates a CGDataProvider from an in-memory block.

Syntax

public CGDataProvider (IntPtr memoryBlock, Int32 size, Boolean ownBuffer)

Parameters

memoryBlock
Pointer to the memory block.
size
Size of the block.
ownBuffer
If true this means that the CGDataProvider owns the buffer and will call FreeHGlobal when it is disposed, otherwise it is assumed that the block is owned by another object.

Requirements

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