项目
在 GitHub 查看
praeclarum/CrossGraphics
关于
Cross-platform Graphics Library for .NET
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 更新延迟
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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
FillRectandDrawRect - Rounded Rectangles using
FillRoundedRectandDrawRoundedRect - Ovals using
FillOvalandDrawOval - Lines using
DrawLineand the optionBeginLineandEndLineprimitives - Images using
DrawImage - Text using
DrawStringand the associated font functions
Development
- Run Acceptance Tests on macOS
dotnet build atests/CrossGraphicsAcceptanceTests.csproj && ./atests/bin/Debug/net10.0-maccatalyst/maccatalyst-arm64/CrossGraphicsAcceptanceTests.app/Contents/MacOS/CrossGraphicsAcceptanceTests $(pwd)
License
The code is copyright Frank A. Krueger and is released under the MIT license.
探索相关项目
加载中…