Is a bitmap created with createBitmapFromDxgiSurface?
I am trying to save an image using Direct2D, referencing the following site, but I am not succeeding.
https://learn.microsoft.com/en-us/windows/win32/direct2d/save-direct2d-content-to-an-image-file
Converting Direct2D’s ID2D1HwndRenderTarget to ID2D1Bitmap
I need to convert a Direct2D ID2D1HwndRenderTarget into an ID2D1Bitmap.
However, I’m encountering an error with CopyFromRenderTarget.
”Error: E_INVALIDARG One or more arguments are invalid.”
To ID2D1Bitmap a Direct2D ID2D1HwndRenderTarget
To ID2D1Bitmap a Direct2D ID2D1HwndRenderTarget.
Why Direct2D drawing quality is inconsistent
This is the result draw line in the window(HwndRenderTarget)
enter image description here
This is the result draw line in the WicBitmapRenderTarget
enter image description here