편집

다음을 통해 공유


GRContext.GetRecommendedSampleCount(GRPixelConfig, Single) Method

Definition

Caution

This API is now deprecated.

Returns the recommended sample count for a render target when using this context.

public int GetRecommendedSampleCount (SkiaSharp.GRPixelConfig config, float dpi);
[System.Obsolete]
public int GetRecommendedSampleCount (SkiaSharp.GRPixelConfig config, float dpi);

Parameters

config
GRPixelConfig

The configuration of the render target.

dpi
Single

The display density in dots per inch.

Returns

Returns the recommended sample count.

Attributes

Remarks

May return 0 if MSAA is not supported or recommended to be used by default.

Applies to