can I draw a offset using direct2d?

mc 5,651 Reputation points
2025-07-26T03:18:20.27+00:00

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.

Windows development | Windows API - Win32
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 90,956 Reputation points
    2025-07-26T22:16:38.3+00:00

    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

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.