How can I perform hit-testing on Direct2D rectangle?

thebluetropics 1,046 Reputation points

I have successfully drawn a rectange using ID2D1HwndRenderTarget::FillRoundedRectangle(), as far as I know, I can do FillContainsPoint(), but it needs D2D1_MATRIX_3X2_F. How do I get the D2D1_MATRIX_3X2_F from a rectangle?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
1,980 questions
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
2,749 questions
{count} votes

0 additional answers

Sort by: Most helpful