CGDataProvider Constructors

Definition

Overloads

CGDataProvider(NSData)

Creates a new CGDataProvider from the provided data.

CGDataProvider(NSUrl)

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

CGDataProvider(Byte[])

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

CGDataProvider(IntPtr)
CGDataProvider(String)

Exposes the contents of the file as a CGDataProvider.

CGDataProvider(IntPtr, Int32)

Creates a CGDataProvider from an in-memory block.

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

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

CGDataProvider(IntPtr, Int32, Boolean)

Creates a CGDataProvider from an in-memory block.

CGDataProvider(NSData)

Creates a new CGDataProvider from the provided data.

public CGDataProvider (Foundation.NSData data);
new CoreGraphics.CGDataProvider : Foundation.NSData -> CoreGraphics.CGDataProvider

Parameters

data
NSData

Applies to

CGDataProvider(NSUrl)

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

public CGDataProvider (Foundation.NSUrl url);
new CoreGraphics.CGDataProvider : Foundation.NSUrl -> CoreGraphics.CGDataProvider

Parameters

url
NSUrl

Applies to

CGDataProvider(Byte[])

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

public CGDataProvider (byte[] buffer);
new CoreGraphics.CGDataProvider : byte[] -> CoreGraphics.CGDataProvider

Parameters

buffer
Byte[]

Applies to

CGDataProvider(IntPtr)

public CGDataProvider (IntPtr handle);
new CoreGraphics.CGDataProvider : nativeint -> CoreGraphics.CGDataProvider

Parameters

handle
IntPtr

nativeint

Applies to

CGDataProvider(String)

Exposes the contents of the file as a CGDataProvider.

public CGDataProvider (string file);
new CoreGraphics.CGDataProvider : string -> CoreGraphics.CGDataProvider

Parameters

file
String

The file to load data from.

Applies to

CGDataProvider(IntPtr, Int32)

Creates a CGDataProvider from an in-memory block.

public CGDataProvider (IntPtr memoryBlock, int size);
new CoreGraphics.CGDataProvider : nativeint * int -> CoreGraphics.CGDataProvider

Parameters

memoryBlock
IntPtr

nativeint

Pointer to the memory block.

size
Int32

Size of the block.

Applies to

CGDataProvider(Byte[], Int32, Int32)

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

public CGDataProvider (byte[] buffer, int offset, int count);
new CoreGraphics.CGDataProvider : byte[] * int * int -> CoreGraphics.CGDataProvider

Parameters

buffer
Byte[]

A block of bytes that contains the data to be provided.

offset
Int32

Offset into the block that is considered part of the data to be provided.

count
Int32

The number of bytes to consume from the offset start from the block.

Applies to

CGDataProvider(IntPtr, Int32, Action<IntPtr>)

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

public CGDataProvider (IntPtr memoryBlock, int size, Action<IntPtr> releaseMemoryBlockCallback);
new CoreGraphics.CGDataProvider : nativeint * int * Action<nativeint> -> CoreGraphics.CGDataProvider

Parameters

memoryBlock
IntPtr

nativeint

size
Int32
releaseMemoryBlockCallback

Action<IntPtr>

Action<nativeint>

Applies to

CGDataProvider(IntPtr, Int32, Boolean)

Creates a CGDataProvider from an in-memory block.

public CGDataProvider (IntPtr memoryBlock, int size, bool ownBuffer);
new CoreGraphics.CGDataProvider : nativeint * int * bool -> CoreGraphics.CGDataProvider

Parameters

memoryBlock
IntPtr

nativeint

Pointer to the memory block.

size
Int32

Size of the block.

ownBuffer
Boolean

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.

Applies to