1 Star 0 Fork 0

WQF_Coder / CouldImage

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

基于SkiaSharp实现的云图绘制(供参考学习)

目标框架.Net8其他版本理论上没有差异,但未验证过
基于SkiaSharp实现理论上具有跨平台能力,但未验证过

效果图

  1. Winfrom Demo
    Winfrom Demo
  2. WPF Demo WPF Demo
  3. 带透明通道 带透明通道

关键计算

参考博客:三叶草╮ WPF 云图

  1. 颜色分布计算:线性插值
  2. 数值分布计算:点距离反比插值

注意事项

  1. 云图生成比较耗时,不适用与频繁刷新
  2. SkiaSharp操作像素使用了unsafe代码块,不喜欢可使用SKColor[]直接赋值,实测性能差异较小

下一步计划

出于效率考虑,后续计划基于C+++OpenCV实现一版,看项目需要以及时间是否允许

MIT License Copyright (c) [year] [fullname] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

基于SkiaSharp实现的云图绘制 展开 收起
C#
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/wqf_coder/could-image.git
git@gitee.com:wqf_coder/could-image.git
wqf_coder
could-image
CouldImage
master

搜索帮助