GraphicsContextResolvedImage

An image resolved to a particular environment.

StructureiOS 15.0+macOS 12.0+tvOS 15.0+watchOS 8.0+GraphicsContext.ResolvedImage in SwiftUI

Declaration

React
type GraphicsContextResolvedImage = { readonly baseline: Scalar; shading: GraphicsContextShading | null | GraphicsContextShading; readonly size: SymbolicSize; copy(): GraphicsContextResolvedImage; };
Swift
struct ResolvedImage

Properties

Overview

You resolve an Image in preparation for drawing it into a context, either manually by calling resolve(_:)-898z6, or automatically when calling draw(_:in:style:)-blhz or draw(_:at:anchor:)-1z5wt. The resolved image takes into account environment values like the display resolution and current color scheme.

From Apple’s SwiftUI documentation. Code samples there are Swift.

See also

More in Drawing and shapes.