---
title: "draw(at:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsimagerep/draw(at:)"
---

# draw(at:)

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

## Declaration

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

## Parameters

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

## Return Value

Return Value true if the image was successfully drawn; otherwise, false. If the size of the image has not yet been set, this method returns false immediately

## Discussion

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() method.

## See Also

### Drawing Images

- [draw()](appkit/nsimagerep/draw().md)
- [draw(in:)](appkit/nsimagerep/draw(in:).md)
- [draw(in:from:operation:fraction:respectFlipped:hints:)](appkit/nsimagerep/draw(in:from:operation:fraction:respectflipped:hints:).md)
- [NSImageRep.HintKey](appkit/nsimagerep/hintkey.md)
