GRContext.Create Method
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.
Overloads
Create(GRBackend) |
Obsolete.
Creates a GRContext for a backend context using the default interface for the specified backend. |
Create(GRBackend, GRGlInterface) |
Obsolete.
Creates a GRContext for a backend context. |
Create(GRBackend, IntPtr) |
Obsolete.
Obsolete.
Creates a GRContext for a backend context. |
Create(GRBackend, GRGlInterface, GRContextOptions) |
Creates a GRContext for a backend context. |
Create(GRBackend, IntPtr, GRContextOptions) |
Creates a GRContext for a backend context. |
Create(GRBackend)
Caution
Use CreateGl() instead.
Creates a GRContext for a backend context using the default interface for the specified backend.
public static SkiaSharp.GRContext Create (SkiaSharp.GRBackend backend);
[System.Obsolete("Use CreateGl() instead.")]
public static SkiaSharp.GRContext Create (SkiaSharp.GRBackend backend);
Parameters
- backend
- GRBackend
The backend to use.
Returns
Returns the new GRContext if one was created, otherwise null
.
- Attributes
Applies to
Create(GRBackend, GRGlInterface)
Caution
Use CreateGl(GRGlInterface) instead.
Creates a GRContext for a backend context.
public static SkiaSharp.GRContext Create (SkiaSharp.GRBackend backend, SkiaSharp.GRGlInterface backendContext);
[System.Obsolete("Use CreateGl(GRGlInterface) instead.")]
public static SkiaSharp.GRContext Create (SkiaSharp.GRBackend backend, SkiaSharp.GRGlInterface backendContext);
Parameters
- backend
- GRBackend
The backend to use.
- backendContext
- GRGlInterface
The backend interface to use.
Returns
Returns the new GRContext if one was created, otherwise null
.
- Attributes
Applies to
Create(GRBackend, IntPtr)
Caution
Use Create(GRBackend, GRGlInterface) instead.
Caution
Use CreateGl(GRGlInterface) instead.
Creates a GRContext for a backend context.
public static SkiaSharp.GRContext Create (SkiaSharp.GRBackend backend, IntPtr backendContext);
[System.Obsolete("Use Create(GRBackend, GRGlInterface) instead.")]
public static SkiaSharp.GRContext Create (SkiaSharp.GRBackend backend, IntPtr backendContext);
[System.Obsolete("Use CreateGl(GRGlInterface) instead.")]
public static SkiaSharp.GRContext Create (SkiaSharp.GRBackend backend, IntPtr backendContext);
Parameters
- backend
- GRBackend
The backend to use.
- backendContext
- IntPtr
The backend interface to use.
Returns
Returns the new GRContext if one was created, otherwise null
.
- Attributes
Applies to
Create(GRBackend, GRGlInterface, GRContextOptions)
Creates a GRContext for a backend context.
public static SkiaSharp.GRContext Create (SkiaSharp.GRBackend backend, SkiaSharp.GRGlInterface backendContext, SkiaSharp.GRContextOptions options);
Parameters
- backend
- GRBackend
The backend to use.
- backendContext
- GRGlInterface
The backend interface to use.
- options
- GRContextOptions
The context-creation options.
Returns
Returns the new GRContext if one was created, otherwise null
.
Applies to
Create(GRBackend, IntPtr, GRContextOptions)
Creates a GRContext for a backend context.
public static SkiaSharp.GRContext Create (SkiaSharp.GRBackend backend, IntPtr backendContext, SkiaSharp.GRContextOptions options);
Parameters
- backend
- GRBackend
The backend to use.
- backendContext
- IntPtr
The backend interface to use.
- options
- GRContextOptions
The context-creation options.
Returns
Returns the new GRContext if one was created, otherwise null
.