CGDataProvider Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
CGDataProvider(NSData) |
Creates a new CGDataProvider from the provided |
CGDataProvider(NSUrl) |
Creates a new CGDataProvider from the data at the specified |
CGDataProvider(Byte[]) |
Creates a new CGDataProvider from the data in the provided |
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 |
CGDataProvider(IntPtr, Int32, Boolean) |
Creates a CGDataProvider from an in-memory block. |
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
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
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
public CGDataProvider (IntPtr handle);
new CoreGraphics.CGDataProvider : nativeint -> CoreGraphics.CGDataProvider
Parameters
- handle
-
IntPtr
nativeint
Applies to
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
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
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
Applies to
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.