MonobjcMonobjc Documented Class Library
CenterScanRect Method (aRect)
NamespacesMonobjc.AppKitNSViewCenterScanRect(NSRect)

Converts the corners of a specified rectangle to lie on the center of device pixels, which is useful in compensating for rendering overscanning when the coordinate system has been scaled.

Original signature is '- (NSRect)centerScanRect:(NSRect)aRect'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSRect CenterScanRect(
	NSRect aRect
)
Public Overridable Function CenterScanRect ( _
	aRect As NSRect _
) As NSRect
public:
virtual NSRect CenterScanRect(
	NSRect aRect
)
Parameters
aRect (NSRect)
The rectangle whose corners are to be converted.
Return Value
The adjusted rectangle.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)