Skip to content

Releases: d2phap/DXControl

v4.3.0

Choose a tag to compare

@d2phap d2phap released this 10 May 03:33

Install/Update it from NuGet:

https://www.nuget.org/packages/D2Phap.DXControl

What's Changed

  • Updated to .NET 10

Full Changelog: 4.2.0...4.3.0

v4.2.0

Choose a tag to compare

@d2phap d2phap released this 05 Aug 03:55

Install/Update it from NuGet:

https://www.nuget.org/packages/D2Phap.DXControl

What's Changed

New Contributors

Full Changelog: 4.1.0...4.2.0

v4.1.0 - Handle Device lost

Choose a tag to compare

@d2phap d2phap released this 30 Nov 03:03

Install/Update it from NuGet:

https://www.nuget.org/packages/D2Phap.DXControl

Changelog

  • Recreates device resource when device lost
  • Added enum DeviceCreatedReason.DeviceLost

Full Changelog: 4.0.0...4.1.0

v4.0.0 - Software Render Target support

Choose a tag to compare

@d2phap d2phap released this 09 Nov 13:11

Install/Update it from NuGet:

https://www.nuget.org/packages/D2Phap.DXControl

🔴 Breaking change

  • Updated the root namespace from D2Phap to D2Phap.DXControl
  • Renamed class D2Phap.DXControl to D2Phap.DXControl.DXCanvas
  • Removed support for drawing with GDI+
    • Removed classes: IGraphics, GdipGraphics, use DXGraphics instead
  • Added support for creating Software render target
    • Setting UseHardwareAcceleration = false to switch to Software render target
    • Added new virtual method: OnDeviceCreated(DeviceCreatedReason reason)
    • Added new event DeviceCreated

🟠 Note:

Changing value of the property UseHardwareAcceleration causes the Device recreated, you can use the DeviceCreated event to dispose the resources of the old device such as ID2D1Bitmap or Geometry. Refer to Demo project for more details.

🔵 Migration

v3.3 v4.0
using D2Phap; using D2Phap.DXControl
public class DemoCanvas : DXControl public class DemoCanvas : DXCanvas
protected override void OnRender(IGraphics g) protected override void OnRender(DXGraphics g)

Full Changelog: 3.3.0...4.0.0

v3.3.0

Choose a tag to compare

@d2phap d2phap released this 18 May 12:15

Install/Update it from NuGet:

https://www.nuget.org/packages/D2Phap.DXControl

Changelog

  • Properly dispose device resources

Full Changelog: 3.2.0...3.3.0

v3.2.0

Choose a tag to compare

@d2phap d2phap released this 27 Apr 08:34

Install/Update it from NuGet:

https://www.nuget.org/packages/D2Phap.DXControl

Changelog

  • Updated WicNet v1.8.3, DirectNStandard v1.16.0
  • Fixed error: System.Private.CoreLib: An item with the same key has already been added (d2phap/ImageGlass#1892)

Full Changelog: 3.1.0...3.2.0

v3.1.0

Choose a tag to compare

@d2phap d2phap released this 21 Jan 02:33

Install/Update it from NuGet:

https://www.nuget.org/packages/D2Phap.DXControl

Changelog

  • Replaced VerticalBlankTicker implementation with .NET PeriodicTimer in OnRender() function to fix issues occurred on Windows Server

Full Changelog: 3.0.2...3.1.0

v3.0.2

Choose a tag to compare

@d2phap d2phap released this 28 Dec 06:42

Install/Update it from NuGet:

https://www.nuget.org/packages/D2Phap.DXControl

Changelog

  • Attempt to fix error 0xc000000d occurred on Windows Server 2019

Full Changelog: 3.0.1...3.0.2

v3.0.1 - .NET 8 GA

Choose a tag to compare

@d2phap d2phap released this 16 Nov 15:22

Install/Update it from NuGet:

https://www.nuget.org/packages/D2Phap.DXControl

What's new:

  • Built against .NET 8 GA

Full Changelog: 3.0.0...3.0.1

v3.0.0 - WicNet 1.7.1 support

Choose a tag to compare

@d2phap d2phap released this 08 Nov 11:59

Install/Update it from Nuget:

https://www.nuget.org/packages/D2Phap.DXControl

What's new:

  • Upgrade WicNet to v1.7.1

⚠️ There are some breaking changes from WicNet v1.7.1:

  • DirectNStandard is now a dependency
  • _D3DCOLORVALUE.FromColor() method is replaced with Color.ToD3DCOLORVALUE()

Full Changelog: 2.7.0...3.0.0