Skip to content

Releases: d2phap/DXControl

v4.1.0 - Handle Device lost

30 Nov 03:03
Compare
Choose a tag to compare

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

09 Nov 13:11
Compare
Choose a tag to compare

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

18 May 12:15
Compare
Choose a tag to compare

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

27 Apr 08:34
Compare
Choose a tag to compare

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

21 Jan 02:33
Compare
Choose a tag to compare

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

28 Dec 06:42
Compare
Choose a tag to compare

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

16 Nov 15:22
Compare
Choose a tag to compare

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

08 Nov 11:59
Compare
Choose a tag to compare

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

v2.7.0 - .NET 8 support

07 Oct 13:15
Compare
Choose a tag to compare

Install/Update it from Nuget:

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

What's new:

  • Support .NET 8

Full Changelog: 2.6.0...2.7.0

v2.6.0

08 Jul 12:52
Compare
Choose a tag to compare

Install/Update it from Nuget:

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

What's new:

Full Changelog: 2.5.0...2.6.0