Contents

convertImageRect(toViewRect:)

Converts an image rectangle to an image view rectangle.

Declaration

func convertImageRect(toViewRect imageRect: NSRect) -> NSRect

Parameters

  • imageRect:

    An rectangle specified in coordinates relative to the image.

Return Value

An rectangle specified in coordinates relative to the image view.

See Also

Converting Points and Rectangles