GRContext.GetRecommendedSampleCount(GRPixelConfig, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.