Releases: d2phap/DXControl
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_IMMEDIATELYinstead 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
VerticalBlankTickerWaitErrorto handle exception fromVerticalBlankTicker. - Added virtual method
void OnVerticalBlankTickerWaitError(VerticalBlankTickerErrorEventArgs e). - Fixed Win32
WAIT_TIMEOUTerror: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_FLAGSfiles. - Removed extensions methods:
CapitalizeFirst(),EqualsIgnoreCase(),Nullify().
Full Changelog: 2.3.1...2.4.1
v2.3.1 - `MeasureText` fix
Install/Update it from Nuget:
https://www.nuget.org/packages/D2Phap.DXControl
What's new:
- Fixed
D2DGraphics.MeasureText()is not correct. - Exposed all private variable of
DXControlas protected variables.
Full Changelog: 2.3.0...2.3.1
v2.3.0 - DPI improvement
Install/Update it from Nuget:
https://www.nuget.org/packages/D2Phap.DXControl
What's new:
- Improves DPI scaling for drawing text
- Updates WicNet to v1.6.1
- Adds support for .NET 7
⚠️ Breaking changes!
- Removed methods:
DrawGeometry,GetCombinedRectanglesGeometry,GetCombinedEllipsesGeometryfrom the interfaceIGraphics, but kept it forD2DGraphics
Full Changelog: 2.2.0...2.3.0
v2.2.0 - DrawGeometry
Install/Update it from Nuget:
https://www.nuget.org/packages/D2Phap.DXControl
What's new:
- Added 3 new methods to
IGraphicsinterface:GetCombinedRectanglesGeometry()GetCombinedEllipsesGeometry()DrawGeometry()
- Added
D2DFactoryproperty toD2DGraphics
WIP / Limitation:
- When using method
DrawGeometry()inGdiGraphics, onlyCombineMode.IntesectandCombineMode.Excludework correctly.
Full Changelog: 2.1.0...2.2.0
v2.1.0 - Unkown Error 0xc01e0006
Install/Update it from Nuget:
https://www.nuget.org/packages/D2Phap.DXControl
What's Changed
- Fixed an unhandled exception when the display is turned off,
VerticalBlankTickerthrows an unknown error0xc01e0006: smourier/DirectN#29
Full Changelog: 2.0.0...2.1.0
v2.0.0 - Hybrid graphics
What's Changed
- Added support for drawing hybrid graphics by
IGraphicsinterface - Replaced
OnDirect2DRender()andOnGdiPlusRender()byOnRender(IGraphics) - Replaced events:
RenderByDirect2DandRenderByGdiPLusbyRender - Removed
DXGraphicsclass, useIGraphicsinstead. - Added new helper functions to
DXHelper. - Added new enums:
DirectN.D2D1_BITMAP_BRUSH_PROPERTIES,DirectN.D2D1_BITMAP_BRUSH_PROPERTIES1
Full Changelog: 1.1.0...2.0.0
v1.1.0 - Stable release
Lots of fixes and improvements
Full Changelog: 1.0.3...1.1.0
Nuget package: https://www.nuget.org/packages/D2Phap.DXControl