🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

CrossGraphics

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

CrossGraphics

Cross-platform library for rendering vector graphics and writing graphics-rich apps. Supports iOS, OS X, Android, Windows Phone, Windows RT, WPF among a variety of file formats.

1.2.14
Source
NuGet
Version published
Maintainers
1
Created
Source

CrossGraphics

CrossGraphics aims to deliver a simple immediate mode interface for drawing graphics on a variety of platforms running .NET.

Currently the following platforms are supported:

  • iOS and macOS using CoreGraphicsGraphics.cs
  • Android using AndroidGraphics.cs
  • Cross-platform SkiaSharp using SkiaSharpGraphics.cs
  • Cross-platform SVG using SvgGraphics.cs

Installation

dotnet add package CrossGraphics

Using the library

The interface CrossGraphics.IGraphics is the recipient of all drawing commands.

You should now code your objects to be able to draw themselves by being passed and IGraphics object.

Drawing commands include:

  • Rectangles using FillRect and DrawRect
  • Rounded Rectangles using FillRoundedRect and DrawRoundedRect
  • Ovals using FillOval and DrawOval
  • Lines using DrawLine and the option BeginLine and EndLine primitives
  • Images using DrawImage
  • Text using DrawString and the associated font functions

License

The code is copyright Frank A. Krueger and is released under the MIT license.

Keywords

graphics

FAQs

Package last updated on 24 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts