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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/D2DLibExport/D2DGraphics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class D2DGraphics
{
internal HANDLE Handle { get; }

public D2DDevice? Device { get; }
public D2DDevice Device { get; }

public D2DGraphics(D2DDevice context)
: this(context.Handle)
Expand All @@ -42,7 +42,8 @@ public D2DGraphics(D2DDevice context)
public D2DGraphics(HANDLE handle)
{
this.Handle = handle;
}
this.Device = new D2DDevice(handle);
}

public void BeginRender()
{
Expand Down