Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion samples/VelloWindowsFormSample/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ private void OnPaintSurface(object sender, VelloPaintSurfaceEventArgs e)
// Maak een pen aan
var pen = new VelloPen(Color.Blue, 5);

const string vtfile = @"cadastral.pbf";
// Load cadastral.pbf from the executable's directory
var exeDirectory = AppContext.BaseDirectory;
var vtfile = Path.Combine(exeDirectory, "cadastral.pbf");
using (var stream = File.OpenRead(vtfile))
{
var layerInfos = VectorTileParser.Parse(stream);
Expand Down
2 changes: 2 additions & 0 deletions samples/VelloWindowsFormSample/VelloWindowsFormSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<SupportedOSPlatformVersion>10.0.17763.0</SupportedOSPlatformVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="VelloSharp.Integration.WinForms" Version="0.5.0-alpha.3" />
<PackageReference Include="VelloSharp.Native.Vello" Version="0.5.0-alpha.3" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading