편집

다음을 통해 공유


SKImage.FromAdoptedTexture Method

Definition

Overloads

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

Creates a new image from the specified texture.

FromAdoptedTexture(GRRecordingContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType)
FromAdoptedTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType)

Creates a new image from the specified texture.

FromAdoptedTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType)

Creates a new image from the specified texture.

FromAdoptedTexture(GRContext, GRGlBackendTextureDesc)
Obsolete.

Creates a new image from the specified OpenGL texture descriptor.

FromAdoptedTexture(GRContext, GRGlBackendTextureDesc, SKAlphaType)
Obsolete.

Creates a new image from the specified OpenGL texture descriptor.

FromAdoptedTexture(GRContext, GRBackendTextureDesc, SKAlphaType)
Obsolete.

Creates a new image from the specified texture descriptor.

FromAdoptedTexture(GRContext, GRBackendTexture, SKColorType)

Creates a new image from the specified texture.

FromAdoptedTexture(GRContext, GRBackendTextureDesc)
Obsolete.

Creates a new image from the specified texture descriptor.

FromAdoptedTexture(GRRecordingContext, GRBackendTexture, SKColorType)

FromAdoptedTexture(GRRecordingContext, GRBackendTexture, GRSurfaceOrigin, SKColorType)

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

Parameters

colorType
SKColorType

Returns

Applies to

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

public static SkiaSharp.SKImage FromAdoptedTexture (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

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

Creates a new image from the specified texture.

public static SkiaSharp.SKImage FromAdoptedTexture (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.

Remarks

SkiaSharp will delete or recycle the texture when the image is released.

Applies to

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

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

Parameters

colorType
SKColorType
alpha
SKAlphaType

Returns

Applies to

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

Creates a new image from the specified texture.

public static SkiaSharp.SKImage FromAdoptedTexture (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.

Remarks

SkiaSharp will delete or recycle the texture when the image is released.

Applies to

FromAdoptedTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType)

Creates a new image from the specified texture.

public static SkiaSharp.SKImage FromAdoptedTexture (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.

Remarks

SkiaSharp will delete or recycle the texture when the image is released.

Applies to

FromAdoptedTexture(GRContext, GRGlBackendTextureDesc)

Caution

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

Creates a new image from the specified OpenGL texture descriptor.

public static SkiaSharp.SKImage FromAdoptedTexture (SkiaSharp.GRContext context, SkiaSharp.GRGlBackendTextureDesc desc);
[System.Obsolete("Use FromAdoptedTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType) instead.")]
public static SkiaSharp.SKImage FromAdoptedTexture (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 image, or null if the specified descriptor is unsupported.

Attributes

Remarks

SkiaSharp will delete or recycle the OpenGL texture when the image is released.

Applies to

FromAdoptedTexture(GRContext, GRGlBackendTextureDesc, SKAlphaType)

Caution

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

Creates a new image from the specified OpenGL texture descriptor.

public static SkiaSharp.SKImage FromAdoptedTexture (SkiaSharp.GRContext context, SkiaSharp.GRGlBackendTextureDesc desc, SkiaSharp.SKAlphaType alpha);
[System.Obsolete("Use FromAdoptedTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType) instead.")]
public static SkiaSharp.SKImage FromAdoptedTexture (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

Remarks

SkiaSharp will delete or recycle the texture when the image is released.

Applies to

FromAdoptedTexture(GRContext, GRBackendTextureDesc, SKAlphaType)

Caution

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

Creates a new image from the specified texture descriptor.

public static SkiaSharp.SKImage FromAdoptedTexture (SkiaSharp.GRContext context, SkiaSharp.GRBackendTextureDesc desc, SkiaSharp.SKAlphaType alpha);
[System.Obsolete("Use FromAdoptedTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType, SKAlphaType) instead.")]
public static SkiaSharp.SKImage FromAdoptedTexture (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

Remarks

SkiaSharp will delete or recycle the texture when the image is released.

Applies to

FromAdoptedTexture(GRContext, GRBackendTexture, SKColorType)

Creates a new image from the specified texture.

public static SkiaSharp.SKImage FromAdoptedTexture (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.

Remarks

SkiaSharp will delete or recycle the texture when the image is released.

Applies to

FromAdoptedTexture(GRContext, GRBackendTextureDesc)

Caution

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

Creates a new image from the specified texture descriptor.

public static SkiaSharp.SKImage FromAdoptedTexture (SkiaSharp.GRContext context, SkiaSharp.GRBackendTextureDesc desc);
[System.Obsolete("Use FromAdoptedTexture(GRContext, GRBackendTexture, GRSurfaceOrigin, SKColorType) instead.")]
public static SkiaSharp.SKImage FromAdoptedTexture (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

Remarks

SkiaSharp will delete or recycle the texture when the image is released.

Applies to

FromAdoptedTexture(GRRecordingContext, GRBackendTexture, SKColorType)

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

Parameters

colorType
SKColorType

Returns

Applies to