How can I perform hit-testing on Direct2D rectangle?

thebluetropics 1,046 Reputation points
2022-09-01T07:20:41.467+00:00

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.
2,428 questions
C++
C++
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.
3,542 questions
{count} votes

0 additional answers

Sort by: Most helpful