<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "PaperKit",
  "identifier" : "/documentation/PaperKit/MarkupAdornment/ImageConfiguration-swift.struct/image(_:alignmentAnchor:)-6nbjc",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "PaperKit"
    ],
    "preciseIdentifier" : "s:8PaperKit15MarkupAdornmentV18ImageConfigurationV5image_15alignmentAnchorAESo7NSImageC_So7CGPointVtFZ"
  },
  "title" : "image(_:alignmentAnchor:)"
}
-->

# image(_:alignmentAnchor:)

Creates an image configuration using a custom image.

```
static func image(_ image: NSImage, alignmentAnchor: CGPoint = .zero) -> MarkupAdornment.ImageConfiguration
```

## Parameters

`image`

The `NSImage` to display.

`alignmentAnchor`

The offset from the image center for positioning. Defaults to zero.

## Return Value

An `ImageConfiguration` for the custom 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)