File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 77
88
99## Resource links
10- - Project url: [ https://github.com/d2phap/DXControl ] ( https://github.com/d2phap/DXControl )
1110- Nuget package: [ https://www.nuget.org/packages/D2Phap.DXControl ] ( https://www.nuget.org/packages/D2Phap.DXControl )
11+ - Project url: [ https://github.com/d2phap/DXControl ] ( https://github.com/d2phap/DXControl )
1212- About: [ https://imageglass.org/about ] ( https://imageglass.org/about )
1313
1414
@@ -46,10 +46,13 @@ public class DXCanvas : DXControl
4646 public DXCanvas ()
4747 {
4848 EnableAnimation = true ;
49+
50+ // use Direct2D
51+ UseHardwareAcceleration = true ;
4952 }
5053
5154 // use Direct2D graphics
52- protected override void OnRender (DXGraphics g )
55+ protected override void OnDirect2DRender (DXGraphics g )
5356 {
5457 // draw a yellow rectangle with green border
5558 g .FillRectangle (rectText , _D3DCOLORVALUE .FromCOLORREF (_D3DCOLORVALUE .Yellow .Int32Value , 100 ));
@@ -58,7 +61,7 @@ public class DXCanvas : DXControl
5861
5962
6063 // Use GDI+ graphics
61- protected override void OnRender (Graphics g )
64+ protected override void OnGdiPlusRender (Graphics g )
6265 {
6366 // draw a yellow rectangle with green border
6467 using var pen = new Pen (Color .Red , 5 );
Original file line number Diff line number Diff line change 2020 <IncludeSymbols >True</IncludeSymbols >
2121 <PackageReleaseNotes ></PackageReleaseNotes >
2222 <Authors >Duong Dieu Phap</Authors >
23- <VersionPrefix >1.0.6 </VersionPrefix >
23+ <VersionPrefix >1.1.0 </VersionPrefix >
2424 <SymbolPackageFormat >snupkg</SymbolPackageFormat >
2525 <PublishRepositoryUrl >true</PublishRepositoryUrl >
2626 <EmbedUntrackedSources >true</EmbedUntrackedSources >
You can’t perform that action at this time.
0 commit comments