Skip to content

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

Open
habibrehmansg wants to merge 1 commit intojingwood:masterfrom
habibrehmansg:fix-path-references
Open

Set D2DGraphic' D2DDevice handle automatically for memory bitmap to draw paths correctly#130
habibrehmansg wants to merge 1 commit intojingwood:masterfrom
habibrehmansg:fix-path-references

Conversation

@habibrehmansg
Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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