Knyaz.Optimus.Graphics 0.1.4

Rendering engine for the Knyaz.Optimus library.

There is a newer prerelease version of this package available.
See the version list below for details.
Install-Package Knyaz.Optimus.Graphics -Version 0.1.4
dotnet add package Knyaz.Optimus.Graphics --version 0.1.4
<PackageReference Include="Knyaz.Optimus.Graphics" Version="0.1.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Knyaz.Optimus.Graphics --version 0.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Knyaz.Optimus.Graphics, 0.1.4"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Knyaz.Optimus.Graphics as a Cake Addin
#addin nuget:?package=Knyaz.Optimus.Graphics&version=0.1.4

// Install Knyaz.Optimus.Graphics as a Cake Tool
#tool nuget:?package=Knyaz.Optimus.Graphics&version=0.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Disclamer

Knyaz.Optimus.Graphics is an experimental library. The result of rendering can be very different from what you would normally see in your favorite browser.

Sample

using System.Threading.Tasks;
using Knyaz.Optimus;
using Knyaz.Optimus.Graphics; //required to call 'ToImage' extension method

namespace ConsoleApp1
{
	class Program
	{
		static async Task Main(string[] args)
		{
			var engine = new Engine();

			//Open google.com site
			var page = await engine.OpenUrl("http://google.com");

			//write rendering result to the bitmap
			var bitmap = engine.ToImage(500, 500);
			
			//save the bitmap to the file
			bitmap.Save("c:/temp/google.bmp");
		}
	}
}

Disclamer

Knyaz.Optimus.Graphics is an experimental library. The result of rendering can be very different from what you would normally see in your favorite browser.

Sample

using System.Threading.Tasks;
using Knyaz.Optimus;
using Knyaz.Optimus.Graphics; //required to call 'ToImage' extension method

namespace ConsoleApp1
{
	class Program
	{
		static async Task Main(string[] args)
		{
			var engine = new Engine();

			//Open google.com site
			var page = await engine.OpenUrl("http://google.com");

			//write rendering result to the bitmap
			var bitmap = engine.ToImage(500, 500);
			
			//save the bitmap to the file
			bitmap.Save("c:/temp/google.bmp");
		}
	}
}

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.2.0-alpha-93 166 9/20/2020
0.2.0-alpha-91 197 2/13/2020
0.2.0-alpha-90 251 2/9/2020
0.2.0-alpha-109 104 5/1/2021
0.2.0-alpha-108 82 4/10/2021
0.2.0-alpha-107 133 1/8/2021
0.2.0-alpha-105 139 1/7/2021
0.2.0-alpha.73 201 11/3/2019
0.1.4 539 8/21/2018
Show less