Editar

Compartir a través de


SKSurface.CreateAsRenderTarget Method

Definition

Overloads

CreateAsRenderTarget(GRContext, GRBackendTexture, GRSurfaceOrigin, Int32, SKColorType, SKColorSpace, SKSurfaceProperties)
Obsolete.

Wraps a pre-existing backend 3D API texture as a surface.

CreateAsRenderTarget(GRContext, GRBackendTexture, GRSurfaceOrigin, Int32, SKColorType, SKSurfaceProperties)
Obsolete.

Wraps a pre-existing backend 3D API texture as a surface.

CreateAsRenderTarget(GRContext, GRBackendTexture, GRSurfaceOrigin, Int32, SKColorType, SKColorSpace)
Obsolete.

Wraps a pre-existing backend 3D API texture as a surface.

CreateAsRenderTarget(GRContext, GRBackendTexture, GRSurfaceOrigin, Int32, SKColorType)
Obsolete.

Wraps a pre-existing backend 3D API texture as a surface.

CreateAsRenderTarget(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKSurfaceProperties)
Obsolete.

Wraps a pre-existing backend 3D API texture as a surface.

CreateAsRenderTarget(GRContext, GRBackendTexture, SKColorType, SKSurfaceProperties)
Obsolete.

Wraps a pre-existing backend 3D API texture as a surface.

CreateAsRenderTarget(GRContext, GRGlBackendTextureDesc, SKSurfaceProps)
Obsolete.
Obsolete.

Wraps a pre-existing backend OpenGL texture as a surface.

CreateAsRenderTarget(GRContext, GRBackendTextureDesc, SKSurfaceProps)
Obsolete.
Obsolete.

Wraps a pre-existing backend 3D API texture as a surface.

CreateAsRenderTarget(GRContext, GRBackendTexture, SKColorType)
Obsolete.

Wraps a pre-existing backend 3D API texture as a surface.

CreateAsRenderTarget(GRContext, GRGlBackendTextureDesc)
Obsolete.
Obsolete.

Wraps a pre-existing backend OpenGL texture as a surface.

CreateAsRenderTarget(GRContext, GRBackendTextureDesc)
Obsolete.
Obsolete.

Wraps a pre-existing backend 3D API texture as a surface.

CreateAsRenderTarget(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType)
Obsolete.

Wraps a pre-existing backend 3D API texture as a surface.

CreateAsRenderTarget(GRContext, GRBackendTexture, GRSurfaceOrigin, Int32, SKColorType, SKColorSpace, SKSurfaceProperties)

Caution

Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType, SKColorSpace, SKSurfaceProperties) instead.

Wraps a pre-existing backend 3D API texture as a surface.

public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.GRSurfaceOrigin origin, int sampleCount, SkiaSharp.SKColorType colorType, SkiaSharp.SKColorSpace colorspace, SkiaSharp.SKSurfaceProperties props);
[System.Obsolete("Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType, SKColorSpace, SKSurfaceProperties) instead.")]
public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.GRSurfaceOrigin origin, int sampleCount, SkiaSharp.SKColorType colorType, SkiaSharp.SKColorSpace colorspace, SkiaSharp.SKSurfaceProperties props);

Parameters

context
GRContext

The graphics context.

texture
GRBackendTexture

The description of the existing texture.

origin
GRSurfaceOrigin

The origin of the texture.

sampleCount
Int32

The number of samples per pixel.

colorType
SKColorType

The color type to use for the surface.

colorspace
SKColorSpace

The colorspace to use for the surface.

props
SKSurfaceProperties

The surface property configuration.

Returns

Returns the new surface if it could be created and the configuration is supported, otherwise null.

Attributes

Applies to

CreateAsRenderTarget(GRContext, GRBackendTexture, GRSurfaceOrigin, Int32, SKColorType, SKSurfaceProperties)

Caution

Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType, SKSurfaceProperties) instead.

Wraps a pre-existing backend 3D API texture as a surface.

public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.GRSurfaceOrigin origin, int sampleCount, SkiaSharp.SKColorType colorType, SkiaSharp.SKSurfaceProperties props);
[System.Obsolete("Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType, SKSurfaceProperties) instead.")]
public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.GRSurfaceOrigin origin, int sampleCount, SkiaSharp.SKColorType colorType, SkiaSharp.SKSurfaceProperties props);

Parameters

context
GRContext

The graphics context.

texture
GRBackendTexture

The description of the existing texture.

origin
GRSurfaceOrigin

The origin of the texture.

sampleCount
Int32

The number of samples per pixel.

colorType
SKColorType

The color type to use for the surface.

props
SKSurfaceProperties

The surface property configuration.

Returns

Returns the new surface if it could be created and the configuration is supported, otherwise null.

Attributes

Applies to

CreateAsRenderTarget(GRContext, GRBackendTexture, GRSurfaceOrigin, Int32, SKColorType, SKColorSpace)

Caution

Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType, SKColorSpace) instead.

Wraps a pre-existing backend 3D API texture as a surface.

public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.GRSurfaceOrigin origin, int sampleCount, SkiaSharp.SKColorType colorType, SkiaSharp.SKColorSpace colorspace);
[System.Obsolete("Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType, SKColorSpace) instead.")]
public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.GRSurfaceOrigin origin, int sampleCount, SkiaSharp.SKColorType colorType, SkiaSharp.SKColorSpace colorspace);

Parameters

context
GRContext

The graphics context.

texture
GRBackendTexture

The description of the existing texture.

origin
GRSurfaceOrigin

The origin of the texture.

sampleCount
Int32

The number of samples per pixel.

colorType
SKColorType

The color type to use for the surface.

colorspace
SKColorSpace

The colorspace to use for the surface.

Returns

Returns the new surface if it could be created and the configuration is supported, otherwise null.

Attributes

Applies to

CreateAsRenderTarget(GRContext, GRBackendTexture, GRSurfaceOrigin, Int32, SKColorType)

Caution

Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType) instead.

Wraps a pre-existing backend 3D API texture as a surface.

public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.GRSurfaceOrigin origin, int sampleCount, SkiaSharp.SKColorType colorType);
[System.Obsolete("Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType) instead.")]
public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.GRSurfaceOrigin origin, int sampleCount, SkiaSharp.SKColorType colorType);

Parameters

context
GRContext

The graphics context.

texture
GRBackendTexture

The description of the existing texture.

origin
GRSurfaceOrigin

The origin of the texture.

sampleCount
Int32

The number of samples per pixel.

colorType
SKColorType

The color type to use for the surface.

Returns

Returns the new surface if it could be created and the configuration is supported, otherwise null.

Attributes

Applies to

CreateAsRenderTarget(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKSurfaceProperties)

Caution

Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKSurfaceProperties) instead.

Wraps a pre-existing backend 3D API texture as a surface.

public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.GRSurfaceOrigin origin, SkiaSharp.SKColorType colorType, SkiaSharp.SKSurfaceProperties props);
[System.Obsolete("Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKSurfaceProperties) instead.")]
public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.GRSurfaceOrigin origin, SkiaSharp.SKColorType colorType, SkiaSharp.SKSurfaceProperties props);

Parameters

context
GRContext

The graphics context.

texture
GRBackendTexture

The description of the existing texture.

origin
GRSurfaceOrigin

The origin of the texture.

colorType
SKColorType

The color type to use for the surface.

props
SKSurfaceProperties

The surface property configuration.

Returns

Returns the new surface if it could be created and the configuration is supported, otherwise null.

Attributes

Applies to

CreateAsRenderTarget(GRContext, GRBackendTexture, SKColorType, SKSurfaceProperties)

Caution

Use Create(GRContext, GRBackendTexture, SKColorType, SKSurfaceProperties) instead.

Wraps a pre-existing backend 3D API texture as a surface.

public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.SKColorType colorType, SkiaSharp.SKSurfaceProperties props);
[System.Obsolete("Use Create(GRContext, GRBackendTexture, SKColorType, SKSurfaceProperties) instead.")]
public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.SKColorType colorType, SkiaSharp.SKSurfaceProperties props);

Parameters

context
GRContext

The graphics context.

texture
GRBackendTexture

The description of the existing texture.

colorType
SKColorType

The color type to use for the surface.

props
SKSurfaceProperties

The surface property configuration.

Returns

Returns the new surface if it could be created and the configuration is supported, otherwise null.

Attributes

Applies to

CreateAsRenderTarget(GRContext, GRGlBackendTextureDesc, SKSurfaceProps)

Caution

Use CreateAsRenderTarget(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType, SKSurfaceProperties) instead.

Caution

Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType, SKSurfaceProperties) instead.

Wraps a pre-existing backend OpenGL texture as a surface.

public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRGlBackendTextureDesc desc, SkiaSharp.SKSurfaceProps props);
[System.Obsolete("Use CreateAsRenderTarget(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType, SKSurfaceProperties) instead.")]
public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRGlBackendTextureDesc desc, SkiaSharp.SKSurfaceProps props);
[System.Obsolete("Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType, SKSurfaceProperties) instead.")]
public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRGlBackendTextureDesc desc, SkiaSharp.SKSurfaceProps props);

Parameters

context
GRContext

The graphics context.

desc
GRGlBackendTextureDesc

The description of the existing OpenGL texture.

props
SKSurfaceProps

The surface property configuration.

Returns

Returns the new surface if it could be created and the configuration is supported, otherwise null.

Attributes

Remarks

The RenderTarget flag must be set on GRGlBackendTextureDesc for this to succeed. The texture must remain valid for the lifetime of the surface.

Applies to

CreateAsRenderTarget(GRContext, GRBackendTextureDesc, SKSurfaceProps)

Caution

Use CreateAsRenderTarget(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType, SKSurfaceProperties) instead.

Caution

Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType, SKSurfaceProperties) instead.

Wraps a pre-existing backend 3D API texture as a surface.

public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRBackendTextureDesc desc, SkiaSharp.SKSurfaceProps props);
[System.Obsolete("Use CreateAsRenderTarget(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType, SKSurfaceProperties) instead.")]
public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRBackendTextureDesc desc, SkiaSharp.SKSurfaceProps props);
[System.Obsolete("Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType, SKSurfaceProperties) instead.")]
public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRBackendTextureDesc desc, SkiaSharp.SKSurfaceProps props);

Parameters

context
GRContext

The graphics context.

desc
GRBackendTextureDesc

The description of the existing texture.

props
SKSurfaceProps

The surface property configuration.

Returns

Returns the new surface if it could be created and the configuration is supported, otherwise null.

Attributes

Remarks

The RenderTarget flag must be set on GRBackendTextureDesc for this to succeed. The texture must remain valid for the lifetime of the surface.

Applies to

CreateAsRenderTarget(GRContext, GRBackendTexture, SKColorType)

Caution

Use Create(GRContext, GRBackendTexture, SKColorType) instead.

Wraps a pre-existing backend 3D API texture as a surface.

public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.SKColorType colorType);
[System.Obsolete("Use Create(GRContext, GRBackendTexture, SKColorType) instead.")]
public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.SKColorType colorType);

Parameters

context
GRContext

The graphics context.

texture
GRBackendTexture

The description of the existing texture.

colorType
SKColorType

The color type to use for the surface.

Returns

Returns the new surface if it could be created and the configuration is supported, otherwise null.

Attributes

Applies to

CreateAsRenderTarget(GRContext, GRGlBackendTextureDesc)

Caution

Use CreateAsRenderTarget(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType) instead.

Caution

Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType) instead.

Wraps a pre-existing backend OpenGL texture as a surface.

public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRGlBackendTextureDesc desc);
[System.Obsolete("Use CreateAsRenderTarget(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType) instead.")]
public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRGlBackendTextureDesc desc);
[System.Obsolete("Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType) instead.")]
public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRGlBackendTextureDesc desc);

Parameters

context
GRContext

The graphics context.

desc
GRGlBackendTextureDesc

The description of the existing OpenGL texture.

Returns

Returns the new surface if it could be created and the configuration is supported, otherwise null.

Attributes

Remarks

The RenderTarget flag must be set on GRGlBackendTextureDesc for this to succeed. The texture must remain valid for the lifetime of the surface.

Applies to

CreateAsRenderTarget(GRContext, GRBackendTextureDesc)

Caution

Use CreateAsRenderTarget(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType) instead.

Caution

Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType) instead.

Wraps a pre-existing backend 3D API texture as a surface.

public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRBackendTextureDesc desc);
[System.Obsolete("Use CreateAsRenderTarget(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType) instead.")]
public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRBackendTextureDesc desc);
[System.Obsolete("Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, int, SKColorType) instead.")]
public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRBackendTextureDesc desc);

Parameters

context
GRContext

The graphics context.

desc
GRBackendTextureDesc

The description of the existing texture.

Returns

Returns the new surface if it could be created and the configuration is supported, otherwise null.

Attributes

Remarks

The RenderTarget flag must be set on GRBackendTextureDesc for this to succeed. The texture must remain valid for the lifetime of the surface.

Applies to

CreateAsRenderTarget(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType)

Caution

Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType) instead.

Wraps a pre-existing backend 3D API texture as a surface.

public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.GRSurfaceOrigin origin, SkiaSharp.SKColorType colorType);
[System.Obsolete("Use Create(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType) instead.")]
public static SkiaSharp.SKSurface CreateAsRenderTarget (SkiaSharp.GRContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.GRSurfaceOrigin origin, SkiaSharp.SKColorType colorType);

Parameters

context
GRContext

The graphics context.

texture
GRBackendTexture

The description of the existing texture.

origin
GRSurfaceOrigin

The origin of the texture.

colorType
SKColorType

The color type to use for the surface.

Returns

Returns the new surface if it could be created and the configuration is supported, otherwise null.

Attributes

Applies to