C++ Direct 2D How To Resize ID2D1Bitmap
Posted
by
Nkosi Dean
on Stack Overflow
See other posts from Stack Overflow
or by Nkosi Dean
Published on 2012-11-11T23:07:41Z
Indexed on
2012/11/12
5:00 UTC
Read the original article
Hit count: 994
I'm making myself a simple GUI library for a game I'm making and each control needs to have a Bitmap to draw to when the control needs redrawing. When it does not need to be redrawn, it will have an already made bitmap ready to display to the screen. Since controls can be resized, this Bitmap also needs to be resized so the control can be fully drawn into it properly. How can I achieve this since it does not appear to be a Resize method to resize a bitmap, unlike an ID2D1HwndRenderTarget, which can be resized?
© Stack Overflow or respective owner