---
title: imageOrigin
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsrulermarker/imageorigin
---

# imageOrigin

The point in the receiver’s image that is positioned at the receiver’s location on the ruler view.

## Declaration

```swift
var imageOrigin: NSPoint { get set }
```

## Discussion

Discussion For a horizontal ruler, the x coordinate of the image origin is aligned with the location of the marker, and the y coordinate lies on the baseline of the ruler. For vertical rulers, the y coordinate of the image origin is the location, and the x coordinate lies on the baseline.

## See Also

### Related Documentation

- [markerLocation](appkit/nsrulermarker/markerlocation.md)

### Setting the image

- [image](appkit/nsrulermarker/image.md)
- [imageRectInRuler](appkit/nsrulermarker/imagerectinruler.md)
- [thicknessRequiredInRuler](appkit/nsrulermarker/thicknessrequiredinruler.md)
