A scrolling is generally done with SetTransform and D2D1::Matrix3x2F::Translation,like at :
https://learn.microsoft.com/en-us/windows/win32/direct2d/how-to-translate
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am using direct2d to draw something.
and I want to ask that how to draw a offset. like that I scroll the page and then what I draw should go up some pixel.
A scrolling is generally done with SetTransform and D2D1::Matrix3x2F::Translation,like at :
https://learn.microsoft.com/en-us/windows/win32/direct2d/how-to-translate