Skip to content

Commit 3779ac4

Browse files
committed
updated readme for v1.1
1 parent cdbb351 commit 3779ac4

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
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);

Source/DXControl/DXControl.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
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>

0 commit comments

Comments
 (0)