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
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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?
According to ID2D1Geometry::FillContainsPoint, D2D1_MATRIX_3X2_F
is the transform to apply to this geometry prior to testing for containment. You can build up the transform if needed or NULL. See TouchHitTesting Microsoft sample.
Wait, let me try.