interpolation
Specifies the current level of quality for rendering an image that requires interpolation.
Declaration
compose().interpolation(
interpolation: SwiftUI.ImageInterpolation
)func interpolation(_ interpolation: Image.Interpolation) -> ImageParameters
interpolation*SwiftUI.ImageInterpolationThe quality level, expressed as a value of
Return value
An image with the given interpolation value set.
Discussion
See the article doc:Fitting-Images-into-Available-Space for examples
of using interpolation(_:) when scaling an Image.
the Interpolation type, that SwiftUI applies when interpolating
an image.
See also
More in Image modifiers.
- allowedDynamicRangeReturns a new image configured with the specified allowed dynamic range.
- antialiasedSpecifies whether SwiftUI applies antialiasing when rendering the image. allow antialiasing. Pass true to allow antialising, false otherwise.
- renderingModeIndicates whether SwiftUI renders an image as-is, or by using a different mode.
- resizableSets the mode by which SwiftUI resizes an image to fit its space.
- symbolColorRenderingModeSets the color rendering mode of the image.
- symbolRenderingModeSets the rendering mode for symbol images within this view.
- symbolVariableValueModeSets the variable value mode mode for symbol images within this view.