Contents

convertRect(toImageRect:)

Converts an image view rectangle to an image rectangle.

Declaration

func convertRect(toImageRect viewRect: NSRect) -> NSRect

Parameters

  • viewRect:

    An rectangle specified in coordinates relative to the image view.

Return Value

The rectangle specified in coordinates relative to the image.

See Also

Converting Points and Rectangles