Editar

Compartir a través de


SKImage.FromTexture Method

Definition

Overloads

FromTexture(GRRecordingContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType, SKColorSpace, SKImageTextureReleaseDelegate, Object)
FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType, SKColorSpace, SKImageTextureReleaseDelegate, Object)

Creates a new image from the specified texture.

FromTexture(GRRecordingContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType, SKColorSpace, SKImageTextureReleaseDelegate)
FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType, SKColorSpace, SKImageTextureReleaseDelegate)

Creates a new image from the specified texture.

FromTexture(GRRecordingContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType, SKColorSpace)
FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType, SKColorSpace)

Creates a new image from the specified texture.

FromTexture(GRRecordingContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType)
FromTexture(GRContext, GRGlBackendTextureDesc, SKAlphaType, SKImageTextureReleaseDelegate, Object)
Obsolete.

Creates a new image from the specified OpenGL texture descriptor.

FromTexture(GRContext, GRBackendTextureDesc, SKAlphaType, SKImageTextureReleaseDelegate, Object)
Obsolete.

Creates a new image from the specified texture descriptor.

FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType)

Creates a new image from the specified texture.

FromTexture(GRRecordingContext, GRBackendTexture, GRSurfaceOrigin, SKColorType)
FromTexture(GRContext, GRGlBackendTextureDesc, SKAlphaType, SKImageTextureReleaseDelegate)
Obsolete.

Creates a new image from the specified OpenGL texture descriptor.

FromTexture(GRContext, GRBackendTextureDesc, SKAlphaType, SKImageTextureReleaseDelegate)
Obsolete.

Creates a new image from the specified texture descriptor.

FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType)

Creates a new image from the specified texture.

FromTexture(GRRecordingContext, GRBackendTexture, SKColorType)
FromTexture(GRContext, GRGlBackendTextureDesc, SKAlphaType)
Obsolete.

Creates a new image from the specified OpenGL texture descriptor.

FromTexture(GRContext, GRBackendTextureDesc, SKAlphaType)
Obsolete.

Creates a new image from the specified texture descriptor.

FromTexture(GRContext, GRBackendTexture, SKColorType)

Creates a new image from the specified texture.

FromTexture(GRContext, GRGlBackendTextureDesc)
Obsolete.

Creates a new image from the specified OpenGL texture descriptor.

FromTexture(GRContext, GRBackendTextureDesc)
Obsolete.

Creates a new image from the specified texture descriptor.

FromTexture(GRRecordingContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType, SKColorSpace, SKImageTextureReleaseDelegate, Object)

public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRRecordingContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.GRSurfaceOrigin origin, SkiaSharp.SKColorType colorType, SkiaSharp.SKAlphaType alpha, SkiaSharp.SKColorSpace colorspace, SkiaSharp.SKImageTextureReleaseDelegate releaseProc, object releaseContext);

Parameters

colorType
SKColorType
alpha
SKAlphaType
colorspace
SKColorSpace
releaseContext
Object

Returns

Applies to

FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType, SKColorSpace, SKImageTextureReleaseDelegate, Object)

Creates a new image from the specified texture.

public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.GRSurfaceOrigin origin, SkiaSharp.SKColorType colorType, SkiaSharp.SKAlphaType alpha, SkiaSharp.SKColorSpace colorspace, SkiaSharp.SKImageTextureReleaseDelegate releaseProc, object releaseContext);

Parameters

context
GRContext

The graphics context.

texture
GRBackendTexture

The description of the existing backend texture.

origin
GRSurfaceOrigin

The origin of the texture.

colorType
SKColorType

The color type to use for the image.

alpha
SKAlphaType

The transparency mode to use for the image.

colorspace
SKColorSpace

The colorspace to use for the image.

releaseProc
SKImageTextureReleaseDelegate

The delegate to invoke when the image is about to be destroyed.

releaseContext
Object

The user data to use when invoking the delegate.

Returns

Returns the new image, or null if the specified texture is unsupported

Applies to

FromTexture(GRRecordingContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType, SKColorSpace, SKImageTextureReleaseDelegate)

public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRRecordingContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.GRSurfaceOrigin origin, SkiaSharp.SKColorType colorType, SkiaSharp.SKAlphaType alpha, SkiaSharp.SKColorSpace colorspace, SkiaSharp.SKImageTextureReleaseDelegate releaseProc);

Parameters

colorType
SKColorType
alpha
SKAlphaType
colorspace
SKColorSpace

Returns

Applies to

FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType, SKColorSpace, SKImageTextureReleaseDelegate)

Creates a new image from the specified texture.

public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.GRSurfaceOrigin origin, SkiaSharp.SKColorType colorType, SkiaSharp.SKAlphaType alpha, SkiaSharp.SKColorSpace colorspace, SkiaSharp.SKImageTextureReleaseDelegate releaseProc);

Parameters

context
GRContext

The graphics context.

texture
GRBackendTexture

The description of the existing backend texture.

origin
GRSurfaceOrigin

The origin of the texture.

colorType
SKColorType

The color type to use for the image.

alpha
SKAlphaType

The transparency mode to use for the image.

colorspace
SKColorSpace

The colorspace to use for the image.

releaseProc
SKImageTextureReleaseDelegate

The delegate to invoke when the image is about to be destroyed.

Returns

Returns the new image, or null if the specified texture is unsupported

Applies to

FromTexture(GRRecordingContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType, SKColorSpace)

public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRRecordingContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.GRSurfaceOrigin origin, SkiaSharp.SKColorType colorType, SkiaSharp.SKAlphaType alpha, SkiaSharp.SKColorSpace colorspace);

Parameters

colorType
SKColorType
alpha
SKAlphaType
colorspace
SKColorSpace

Returns

Applies to

FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType, SKColorSpace)

Creates a new image from the specified texture.

public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.GRSurfaceOrigin origin, SkiaSharp.SKColorType colorType, SkiaSharp.SKAlphaType alpha, SkiaSharp.SKColorSpace colorspace);

Parameters

context
GRContext

The graphics context.

texture
GRBackendTexture

The description of the existing backend texture.

origin
GRSurfaceOrigin

The origin of the texture.

colorType
SKColorType

The color type to use for the image.

alpha
SKAlphaType

The transparency mode to use for the image.

colorspace
SKColorSpace

The colorspace to use for the image.

Returns

Returns the new image, or null if the specified texture is unsupported

Applies to

FromTexture(GRRecordingContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType)

public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRRecordingContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.GRSurfaceOrigin origin, SkiaSharp.SKColorType colorType, SkiaSharp.SKAlphaType alpha);

Parameters

colorType
SKColorType
alpha
SKAlphaType

Returns

Applies to

FromTexture(GRContext, GRGlBackendTextureDesc, SKAlphaType, SKImageTextureReleaseDelegate, Object)

Caution

Use FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType, SKColorSpace, SKImageTextureReleaseDelegate, object) instead.

Creates a new image from the specified OpenGL texture descriptor.

public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRContext context, SkiaSharp.GRGlBackendTextureDesc desc, SkiaSharp.SKAlphaType alpha, SkiaSharp.SKImageTextureReleaseDelegate releaseProc, object releaseContext);
[System.Obsolete("Use FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType, SKColorSpace, SKImageTextureReleaseDelegate, object) instead.")]
public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRContext context, SkiaSharp.GRGlBackendTextureDesc desc, SkiaSharp.SKAlphaType alpha, SkiaSharp.SKImageTextureReleaseDelegate releaseProc, object releaseContext);

Parameters

context
GRContext

The graphics context.

desc
GRGlBackendTextureDesc

The description of the existing OpenGL texture.

alpha
SKAlphaType

The alpha type of the texture.

releaseProc
SKImageTextureReleaseDelegate

The delegate to invoke when the image is about to be destroyed.

releaseContext
Object

The user data to use when invoking the delegate.

Returns

Returns the new image, or null if the specified descriptor is unsupported

Attributes

Applies to

FromTexture(GRContext, GRBackendTextureDesc, SKAlphaType, SKImageTextureReleaseDelegate, Object)

Caution

Use FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType, SKColorSpace, SKImageTextureReleaseDelegate, object) instead.

Creates a new image from the specified texture descriptor.

public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRContext context, SkiaSharp.GRBackendTextureDesc desc, SkiaSharp.SKAlphaType alpha, SkiaSharp.SKImageTextureReleaseDelegate releaseProc, object releaseContext);
[System.Obsolete("Use FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType, SKColorSpace, SKImageTextureReleaseDelegate, object) instead.")]
public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRContext context, SkiaSharp.GRBackendTextureDesc desc, SkiaSharp.SKAlphaType alpha, SkiaSharp.SKImageTextureReleaseDelegate releaseProc, object releaseContext);

Parameters

context
GRContext

The graphics context.

desc
GRBackendTextureDesc

The description of the existing texture.

alpha
SKAlphaType

The alpha type of the texture.

releaseProc
SKImageTextureReleaseDelegate

The delegate to invoke when the image is about to be destroyed.

releaseContext
Object

The user data to use when invoking the delegate.

Returns

Returns the new image, or null if the specified descriptor is unsupported

Attributes

Applies to

FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType)

Creates a new image from the specified texture.

public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.GRSurfaceOrigin origin, SkiaSharp.SKColorType colorType, SkiaSharp.SKAlphaType alpha);

Parameters

context
GRContext

The graphics context.

texture
GRBackendTexture

The description of the existing backend texture.

origin
GRSurfaceOrigin

The origin of the texture.

colorType
SKColorType

The color type to use for the image.

alpha
SKAlphaType

The transparency mode to use for the image.

Returns

Returns the new image, or null if the specified texture is unsupported

Applies to

FromTexture(GRRecordingContext, GRBackendTexture, GRSurfaceOrigin, SKColorType)

public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRRecordingContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.GRSurfaceOrigin origin, SkiaSharp.SKColorType colorType);

Parameters

colorType
SKColorType

Returns

Applies to

FromTexture(GRContext, GRGlBackendTextureDesc, SKAlphaType, SKImageTextureReleaseDelegate)

Caution

Use FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType, SKColorSpace, SKImageTextureReleaseDelegate) instead.

Creates a new image from the specified OpenGL texture descriptor.

public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRContext context, SkiaSharp.GRGlBackendTextureDesc desc, SkiaSharp.SKAlphaType alpha, SkiaSharp.SKImageTextureReleaseDelegate releaseProc);
[System.Obsolete("Use FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType, SKColorSpace, SKImageTextureReleaseDelegate) instead.")]
public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRContext context, SkiaSharp.GRGlBackendTextureDesc desc, SkiaSharp.SKAlphaType alpha, SkiaSharp.SKImageTextureReleaseDelegate releaseProc);

Parameters

context
GRContext

The graphics context.

desc
GRGlBackendTextureDesc

The description of the existing OpenGL texture.

alpha
SKAlphaType

The alpha type of the texture.

releaseProc
SKImageTextureReleaseDelegate

The delegate to invoke when the image is about to be destroyed.

Returns

Returns the new image, or null if the specified descriptor is unsupported.

Attributes

Applies to

FromTexture(GRContext, GRBackendTextureDesc, SKAlphaType, SKImageTextureReleaseDelegate)

Caution

Use FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType, SKColorSpace, SKImageTextureReleaseDelegate) instead.

Creates a new image from the specified texture descriptor.

public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRContext context, SkiaSharp.GRBackendTextureDesc desc, SkiaSharp.SKAlphaType alpha, SkiaSharp.SKImageTextureReleaseDelegate releaseProc);
[System.Obsolete("Use FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType, SKColorSpace, SKImageTextureReleaseDelegate) instead.")]
public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRContext context, SkiaSharp.GRBackendTextureDesc desc, SkiaSharp.SKAlphaType alpha, SkiaSharp.SKImageTextureReleaseDelegate releaseProc);

Parameters

context
GRContext

The graphics context.

desc
GRBackendTextureDesc

The description of the existing texture.

alpha
SKAlphaType

The alpha type of the texture.

releaseProc
SKImageTextureReleaseDelegate

The delegate to invoke when the image is about to be destroyed.

Returns

Returns the new image, or null if the specified descriptor is unsupported.

Attributes

Applies to

FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType)

Creates a new image from the specified texture.

public static SkiaSharp.SKImage FromTexture (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 backend texture.

origin
GRSurfaceOrigin

The origin of the texture.

colorType
SKColorType

The color type to use for the image.

Returns

Returns the new image, or null if the specified texture is unsupported

Applies to

FromTexture(GRRecordingContext, GRBackendTexture, SKColorType)

public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRRecordingContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.SKColorType colorType);

Parameters

colorType
SKColorType

Returns

Applies to

FromTexture(GRContext, GRGlBackendTextureDesc, SKAlphaType)

Caution

Use FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType) instead.

Creates a new image from the specified OpenGL texture descriptor.

public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRContext context, SkiaSharp.GRGlBackendTextureDesc desc, SkiaSharp.SKAlphaType alpha);
[System.Obsolete("Use FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType) instead.")]
public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRContext context, SkiaSharp.GRGlBackendTextureDesc desc, SkiaSharp.SKAlphaType alpha);

Parameters

context
GRContext

The graphics context.

desc
GRGlBackendTextureDesc

The description of the existing OpenGL texture.

alpha
SKAlphaType

The alpha type of the texture.

Returns

Returns the new image, or null if the specified descriptor is unsupported.

Attributes

Applies to

FromTexture(GRContext, GRBackendTextureDesc, SKAlphaType)

Caution

Use FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType) instead.

Creates a new image from the specified texture descriptor.

public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRContext context, SkiaSharp.GRBackendTextureDesc desc, SkiaSharp.SKAlphaType alpha);
[System.Obsolete("Use FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType) instead.")]
public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRContext context, SkiaSharp.GRBackendTextureDesc desc, SkiaSharp.SKAlphaType alpha);

Parameters

context
GRContext

The graphics context.

desc
GRBackendTextureDesc

The description of the existing texture.

alpha
SKAlphaType

The alpha type of the texture.

Returns

Returns the new image, or null if the specified descriptor is unsupported.

Attributes

Applies to

FromTexture(GRContext, GRBackendTexture, SKColorType)

Creates a new image from the specified texture.

public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRContext context, SkiaSharp.GRBackendTexture texture, SkiaSharp.SKColorType colorType);

Parameters

context
GRContext

The graphics context.

texture
GRBackendTexture

The description of the existing backend texture.

colorType
SKColorType

The color type to use for the image.

Returns

Returns the new image, or null if the specified texture is unsupported

Applies to

FromTexture(GRContext, GRGlBackendTextureDesc)

Caution

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

Creates a new image from the specified OpenGL texture descriptor.

public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRContext context, SkiaSharp.GRGlBackendTextureDesc desc);
[System.Obsolete("Use FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType) instead.")]
public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRContext context, SkiaSharp.GRGlBackendTextureDesc desc);

Parameters

context
GRContext

The graphics context.

desc
GRGlBackendTextureDesc

The description of the existing texture.

Returns

Returns the new image, or null if the specified descriptor is unsupported.

Attributes

Applies to

FromTexture(GRContext, GRBackendTextureDesc)

Caution

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

Creates a new image from the specified texture descriptor.

public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRContext context, SkiaSharp.GRBackendTextureDesc desc);
[System.Obsolete("Use FromTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType) instead.")]
public static SkiaSharp.SKImage FromTexture (SkiaSharp.GRContext context, SkiaSharp.GRBackendTextureDesc desc);

Parameters

context
GRContext

The graphics context.

desc
GRBackendTextureDesc

The description of the existing texture.

Returns

Returns the new image, or null if the specified descriptor is unsupported.

Attributes

Applies to