Edit

SKImage.ToTextureImage Method

Definition

Overloads

Name Description
ToTextureImage(GRContext)

Returns a GPU-backed image from this image.

ToTextureImage(GRContext, Boolean)

Returns a GPU-backed image from this image.

ToTextureImage(GRContext, Boolean, Boolean)

Returns a GPU-backed image from this image.

ToTextureImage(GRContext)

Returns a GPU-backed image from this image.

public SkiaSharp.SKImage ToTextureImage(SkiaSharp.GRContext context);

Parameters

context
GRContext

The GPU context.

Returns

Returns a GPU-backed image, or null if the conversion fails.

Remarks

If the image is already GPU-backed, it may return the same image.

Applies to

ToTextureImage(GRContext, Boolean)

Returns a GPU-backed image from this image.

public SkiaSharp.SKImage ToTextureImage(SkiaSharp.GRContext context, bool mipmapped);

Parameters

context
GRContext

The GPU context.

mipmapped
Boolean

Whether to generate mipmaps.

Returns

Returns a GPU-backed image, or null if the conversion fails.

Remarks

If the image is already GPU-backed, it may return the same image.

Applies to

ToTextureImage(GRContext, Boolean, Boolean)

Returns a GPU-backed image from this image.

public SkiaSharp.SKImage ToTextureImage(SkiaSharp.GRContext context, bool mipmapped, bool budgeted);

Parameters

context
GRContext

The GPU context.

mipmapped
Boolean

Whether to generate mipmaps.

budgeted
Boolean

Whether the image should count against the GPU resource budget.

Returns

Returns a GPU-backed image, or null if the conversion fails.

Remarks

If the image is already GPU-backed, it may return the same image.

Applies to