SKSamplingOptions Struct
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.
Specifies the sampling options used when drawing images, including filter mode, mipmap mode, and cubic resampling.
public readonly struct SKSamplingOptions : IEquatable<SkiaSharp.SKSamplingOptions>
- Inheritance
-
SKSamplingOptions
- Implements
Constructors
| Name | Description |
|---|---|
| SKSamplingOptions(Int32) |
Initializes a new instance of the SKSamplingOptions struct with the specified anisotropic filtering level. |
| SKSamplingOptions(SKCubicResampler) |
Initializes a new instance of the SKSamplingOptions struct with the specified cubic resampler. |
| SKSamplingOptions(SKFilterMode, SKMipmapMode) |
Initializes a new instance of the SKSamplingOptions struct with the specified filter and mipmap modes. |
| SKSamplingOptions(SKFilterMode) |
Initializes a new instance of the SKSamplingOptions struct with the specified filter mode and no mipmap filtering. |
Fields
| Name | Description |
|---|---|
| Default |
Gets the default sampling options. |
Properties
| Name | Description |
|---|---|
| Cubic |
Gets the cubic resampler parameters. |
| Filter |
Gets the filter mode. |
| IsAniso |
Gets a value indicating whether anisotropic filtering is enabled. |
| MaxAniso |
Gets the maximum anisotropic filtering level. |
| Mipmap |
Gets the mipmap mode. |
| UseCubic |
Gets a value indicating whether cubic resampling is enabled. |
Methods
| Name | Description |
|---|---|
| Equals(Object) |
Determines whether the specified object is equal to the current instance. |
| Equals(SKSamplingOptions) |
Determines whether the specified SKSamplingOptions is equal to the current instance. |
| GetHashCode() |
Returns the hash code for this instance. |
Operators
| Name | Description |
|---|---|
| Equality(SKSamplingOptions, SKSamplingOptions) |
Determines whether two SKSamplingOptions instances are equal. |
| Inequality(SKSamplingOptions, SKSamplingOptions) |
Determines whether two SKSamplingOptions instances are not equal. |