Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create ID2D1Bitmap1 by calling ID2D1DeviceContext::CreateBitmap #2279

Open
TonyDragonlake opened this issue Sep 9, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@TonyDragonlake
Copy link

I hope to make a ID2D1Bitmap1 by calling ID2D1DeviceContext.CreateBitmap method, but it only has the ID2DBitmap version.

I need to make this bitmap accessible to the CPU, so BitmapProperties1 is necessary because it has an additional public field public BitmapOptions BitmapOptions; that BitmapProperties doesn't have.

Here is the api code from Direct2D API website.

HRESULT CreateBitmap(
                 D2D1_SIZE_U                     size,
  [in, optional] const void                      *sourceData,
                 UINT32                          pitch,
  [in]           const D2D1_BITMAP_PROPERTIES1 & bitmapProperties,
  [out]          ID2D1Bitmap1                    **bitmap
);

Please add ID2D1DeviceContext.CreateBitmap method for ID2D1Bitmap1 version.

@TonyDragonlake TonyDragonlake added the bug Something isn't working label Sep 9, 2024
@Perksey Perksey added this to the 3.0 milestone Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants