Returns whether the destination rectangle would intersect a non-transparent portion of the image.
Original signature is '- (BOOL)hitTestRect:(NSRect)testRectDestSpace withImageDestinationRect:(NSRect)imageRectDestSpace context:(NSGraphicsContext *)referenceContext hints:(NSDictionary *)hints flipped:(BOOL)flipped'
Available in Mac OS X v10.6 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual bool HitTestRectWithImageDestinationRectContextHintsFlipped( NSRect testRectDestSpace, NSRect imageRectDestSpace, NSGraphicsContext referenceContext, NSDictionary hints, bool flipped )
Public Overridable Function HitTestRectWithImageDestinationRectContextHintsFlipped ( _ testRectDestSpace As NSRect, _ imageRectDestSpace As NSRect, _ referenceContext As NSGraphicsContext, _ hints As NSDictionary, _ flipped As Boolean _ ) As Boolean
public: virtual bool HitTestRectWithImageDestinationRectContextHintsFlipped( NSRect testRectDestSpace, NSRect imageRectDestSpace, NSGraphicsContext^ referenceContext, NSDictionary^ hints, bool flipped )
Parameters
- testRectDestSpace (NSRect)
- The rectangle to hit test.
- imageRectDestSpace (NSRect)
- A rectangle representing the drawn size of the image.
- referenceContext (NSGraphicsContext)
- A graphics context. This value can be nil.
- hints (NSDictionary)
- An optional dictionary of hints that provide more context for selecting or generating a CGImage, and may override properties of the referenceContext. See “Image Hint Dictionary Keys” for a summary of the possible key-value pairs.
- flipped (Boolean)
- YES if the image is flipped, otherwise NO.
Return Value
YES if the testRectDestSpace intersects with non-transparent content within the imageRectDestSpace, otherwise NO.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)