<!--
{
  "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/draw(_:at:anchor:)-1z5wt",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15GraphicsContextV4draw_2at6anchoryAC13ResolvedImageV_So7CGPointVAA9UnitPointVtF"
  },
  "title" : "draw(_:at:anchor:)"
}
-->

# draw(_:at:anchor:)

Draws a resolved image into the context, aligning an anchor within the
image to a point in the context.

```
func draw(_ image: GraphicsContext.ResolvedImage, at point: CGPoint, anchor: UnitPoint = .center)
```

## Parameters

`image`

The `ResolvedImage` to draw. Get a resolved image from an
`Image` by calling `resolve(_:)-898z6`. Alternatively, you can
call `draw(_:at:anchor:)-7l217` with an `Image`, and that method
performs the resolution automatically.

`point`

A point within the rectangle of the resolved image to anchor
to a point in the context.

`anchor`

A `UnitPoint` within the context to align the image with.
The default is `UnitPoint/center`.

## Discussion

The current context state defines the full drawing operation. For
example, the current transformation and clip shapes affect how SwiftUI
draws the image.

---

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)