Releases: d2phap/DXControl
v4.1.0 - Handle Device lost
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
Install/Update it from NuGet:
https://www.nuget.org/packages/D2Phap.DXControl
🔴 Breaking change
- Updated the root namespace from
D2Phap
toD2Phap.DXControl
- Renamed class
D2Phap.DXControl
toD2Phap.DXControl.DXCanvas
- Removed support for drawing with GDI+
- Removed classes:
IGraphics
,GdipGraphics
, useDXGraphics
instead
- Removed classes:
- 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
- Setting
🟠 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
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
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
Install/Update it from NuGet:
https://www.nuget.org/packages/D2Phap.DXControl
Changelog
- Replaced
VerticalBlankTicker
implementation with .NETPeriodicTimer
inOnRender()
function to fix issues occurred on Windows Server
Full Changelog: 3.0.2...3.1.0
v3.0.2
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
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
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 withColor.ToD3DCOLORVALUE()
Full Changelog: 2.7.0...3.0.0
v2.7.0 - .NET 8 support
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
Install/Update it from Nuget:
https://www.nuget.org/packages/D2Phap.DXControl
What's new:
- Update WicNet to v1.6.5
- In the
_d2DFactory.CreateHwndRenderTarget()
method, useD2D1_PRESENT_OPTIONS_IMMEDIATELY
instead ofD2D1_PRESENT_OPTIONS_NONE
.
Full Changelog: 2.5.0...2.6.0