Skip to content
New issue

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

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

Already on GitHub? # to your account

Set D2DGraphic' D2DDevice handle automatically for memory bitmap to draw paths correctly #130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

habibrehmansg
Copy link

Fixes #81

This pull request includes changes to the D2DGraphics class in the src/D2DLibExport/D2DGraphics.cs file to improve the handling of the Device property. The most important changes are:

  • src/D2DLibExport/D2DGraphics.cs: Changed the Device property from nullable (D2DDevice?) to non-nullable (D2DDevice). This ensures that the Device property will always be initialized and not null.
  • src/D2DLibExport/D2DGraphics.cs: Updated the constructor public D2DGraphics(HANDLE handle) to initialize the Device property with a new D2DDevice instance using the provided handle.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: FillPath and DrawPath do not work on Memory Bitmap
1 participant