vector graphics - How to rotate circle in Direct2D in Visual C++ using pressed left mouse button? -


i begin use direct2d , i'd know how rotate circle in direct2d in win32 visual c++ application pressed left mouse button? i'll thankful help.

you can apply rotation transform render target using id2d1rendertarget::settransform method , d2d1::matrix3x2f helper class. see this msdn topic full example.

if want rotate in response left mouse button click, can handle wm_lbuttondown message in window procedure:

lresult callback windowproc(hwnd hwnd, uint umsg, wparam wparam, lparam lparam) {     switch (umsg)     {     case wm_lbuttondown:         // code re-draw circle different rotation transform      ...     } } 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -