<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSImageRep/draw(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSImageRep(im)drawAtPoint:"
  },
  "title" : "draw(at:)"
}
-->

# draw(at:)

Draws the image representation’s image data at the specified point in the current coordinate system.

```
func draw(at point: NSPoint) -> Bool
```

## Parameters

`point`

The point in the current coordinate system at which to draw the image.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the image was successfully drawn; otherwise, <doc://com.apple.documentation/documentation/Swift/false>. If the size of the image has not yet been set, this method returns <doc://com.apple.documentation/documentation/Swift/false> immediately

## Discussion

This method sets the origin of the current coordinate system to the specified point and then invokes the receiver’s `draw` method to draw the image at that point. Upon completion, it restores the current coordinates to their original setting. If `aPoint` is (0.0, 0.0), this method simply invokes the [`draw()`](/documentation/AppKit/NSImageRep/draw()) method.

---

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)