Contents

resolve(_:)

Gets a version of an image that’s fixed with the current values of the graphics context’s environment.

Declaration

func resolve(_ image: Image) -> GraphicsContext.ResolvedImage

Parameters

  • image:

    The Image to resolve.

Return Value

An image that’s resolved into the current context’s environment, taking into account environment values like the display resolution and current color scheme.

Discussion

You can measure the resolved image by looking at its size and baseline properties. You can draw the resolved image with the context’s draw(_:in:style:) or draw(_:at:anchor:) method.

See Also

Resolving a drawn entity