<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/GraphicsContext/ResolvedImage",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15GraphicsContextV13ResolvedImageV"
  },
  "title" : "GraphicsContext.ResolvedImage"
}
-->

# GraphicsContext.ResolvedImage

An image resolved to a particular environment.

```
struct ResolvedImage
```

## Overview

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

## Topics

### Getting the image properties

[`var size: CGSize`](/documentation/SwiftUI/GraphicsContext/ResolvedImage/size)

The size of the image.

[`let baseline: CGFloat`](/documentation/SwiftUI/GraphicsContext/ResolvedImage/baseline)

The distance from the top of the image to its baseline.

[`var shading: GraphicsContext.Shading?`](/documentation/SwiftUI/GraphicsContext/ResolvedImage/shading)

An optional shading to fill the image with.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)