Releases: d2phap/DXControl
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
v2.5.0 - Direct2D 1.3
Install/Update it from Nuget:
https://www.nuget.org/packages/D2Phap.DXControl
What's new:
- Use Direct2D 1.3 features by default (see Breaking changes).
- Exposed event
VerticalBlankTickerWaitError
to handle exception fromVerticalBlankTicker
. - Added virtual method
void OnVerticalBlankTickerWaitError(VerticalBlankTickerErrorEventArgs e)
. - Fixed Win32
WAIT_TIMEOUT
error:The wait operation timed out.
when the monitor is turned off.
⚠️ Breaking changes!
These changes are because of upgrading to Direct2D 1.3, and using IComObject<>
to utilize the extension methods.
1. DXControl
class
Properties | Old type | New type |
---|---|---|
DXControl.RenderTarget |
ID2D1HwndRenderTarget |
IComObject<ID2D1HwndRenderTarget> |
DXControl.Device |
ID2D1DeviceContext |
IComObject<ID2D1DeviceContext6> |
DXControl.Direct2DFactory |
ID2D1Factory |
IComObject<ID2D1Factory1> |
DXControl.DirectWriteFactory |
IDWriteFactory |
IComObject<IDWriteFactory5> |
2. D2DGraphics
class
Old type | New type | |
---|---|---|
The argument object? bitmap in D2DGraphics.DrawBitmap(...) |
ID2D1Bitmap |
ComObject<ID2D1Bitmap1> |
D2DGraphics.DeviceContext |
ID2D1DeviceContext |
IComObject<ID2D1DeviceContext6> |
3. DXHelper
class
Old type | New type | |
---|---|---|
The argument bmp in DXHelper.DisposeD2D1Bitmap(...) |
ID2D1Bitmap |
IComObject<ID2D1Bitmap1> |
The return value of DXHelper.CreateDefaultBitmapProps(...) |
D2D1_BITMAP_PROPERTIES |
D2D1_BITMAP_PROPERTIES1 |
The argument dc in DXHelper.ToD2D1Bitmap(...) |
ID2D1DeviceContext |
IComObject<ID2D1DeviceContext6> |
The return value of DXHelper.ToD2D1Bitmap(...) |
ComObject<ID2D1Bitmap> |
IComObject<ID2D1Bitmap1> |
Full Changelog: 2.4.1...2.5.0
2.4.1 - Chore
Install/Update it from Nuget:
https://www.nuget.org/packages/D2Phap.DXControl
What's new:
- Updated WicNet to v1.6.4.1.
- Removed
DISPLAY_DEVICE
,DISPLAY_DEVICE_FLAGS
files. - Removed extensions methods:
CapitalizeFirst()
,EqualsIgnoreCase()
,Nullify()
.
Full Changelog: 2.3.1...2.4.1