top | item 35080327

(no title)

samsaga2 | 3 years ago

Smooth animations and performance. Draw a big image with Win32 BitBlt it's painful slow, for example. Imagine that you are zooming an image in Photoshop and it is laggy, the user experience would be horrible. Also, the lag is an important issue in the user interface, even something so small like 100ms would be bad.

discuss

order

pjmlp|3 years ago

If you're using BitBlt instead of Direct2D in anything post Vista, you're holding it wrong.

speed_spread|3 years ago

Why not just use DirectX/*GL for those regions that need it and stick with platform UI for the rest? Blitting API still works just fine if you're drawing combo boxes, no?

DeathArrow|3 years ago

You can use ID2D1HwndRenderTarget::DrawBitmap or ID2D1RenderTarget::DrawBitmap instead.

tcfhgj|3 years ago

What about the winrt api?

pjmlp|3 years ago

Nee, Direct2D. Save yourself some pain.

WinRT has gone through multiple reboots, who knows what will happen still.

Better use the existing Win32/COM stuff.