CGDataProvider Class
Definition
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.
A class that wraps a data source and exposes it to the CGImage class.
public class CGDataProvider : IDisposable, ObjCRuntime.INativeObject
type CGDataProvider = class
interface INativeObject
interface IDisposable
- Inheritance
-
CGDataProvider
- Implements
Constructors
CGDataProvider(Byte[]) |
Creates a new CGDataProvider from the data in the provided |
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) | |
CGDataProvider(IntPtr, Int32) |
Creates a CGDataProvider from an in-memory block. |
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. |
CGDataProvider(NSData) |
Creates a new CGDataProvider from the provided |
CGDataProvider(NSUrl) |
Creates a new CGDataProvider from the data at the specified |
CGDataProvider(String) |
Exposes the contents of the file as a CGDataProvider. |
Properties
Handle |
Handle (pointer) to the unmanaged object representation. |
Methods
CopyData() |
Returns a copy of the provider's data. |
Dispose() |
Releases the resources used by the CGDataProvider object. |
Dispose(Boolean) |
Releases the resources used by the CGDataProvider object. |
Finalize() |
Finalizer for the CGDataProvider object |
FromFile(String) |
Creates a CGDataProvider from an on-disk file. |