mirror of
https://github.com/eggplantlwj/VisionEdit.git
synced 2026-03-30 04:28:38 +08:00
1、修复因加入输入位姿引发的BUG
2、PMA工具完善 3、其他BUG修复
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// ***********************************************************************
|
||||
// ***********************************************************************
|
||||
// Assembly : HZH_Controls
|
||||
// Created : 2019-09-11
|
||||
//
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
//
|
||||
// ***********************************************************************
|
||||
// <copyright file="FontImages.cs">
|
||||
// Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com
|
||||
// Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com
|
||||
// </copyright>
|
||||
//
|
||||
// Blog: https://www.cnblogs.com/bfyx
|
||||
// GitHub:https://github.com/kwwwvagaa/NetWinformControl
|
||||
// gitee:https://gitee.com/kwwwvagaa/net_winform_custom_control.git
|
||||
// GitHub:https://github.com/kwwwvagaa/NetWinformControl
|
||||
// gitee:https://gitee.com/kwwwvagaa/net_winform_custom_control.git
|
||||
//
|
||||
// If you use this code, please keep this note.
|
||||
// ***********************************************************************
|
||||
@@ -24,9 +24,9 @@ using System.IO;
|
||||
namespace HZH_Controls
|
||||
{
|
||||
/// <summary>
|
||||
/// 字体图标图片,awesome字体默认加载,elegant字体在使用时延迟加载
|
||||
/// 图标示例 http://www.fontawesome.com.cn/faicons/?tdsourcetag=s_pcqq_aiomsg
|
||||
/// 图标示例 https://www.elegantthemes.com/blog/resources/elegant-icon-font
|
||||
/// 字体图标图片,awesome字体默认加载,elegant字体在使用时延迟加载
|
||||
/// 图标示例 http://www.fontawesome.com.cn/faicons/?tdsourcetag=s_pcqq_aiomsg
|
||||
/// 图标示例 https://www.elegantthemes.com/blog/resources/elegant-icon-font
|
||||
/// </summary>
|
||||
public static class FontImages
|
||||
{
|
||||
@@ -59,7 +59,7 @@ namespace HZH_Controls
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
/// 构造函数
|
||||
/// </summary>
|
||||
/// <exception cref="FileNotFoundException">Font file not found</exception>
|
||||
static FontImages()
|
||||
@@ -161,25 +161,25 @@ namespace HZH_Controls
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取图标
|
||||
/// 获取图标
|
||||
/// </summary>
|
||||
/// <param name="iconText">图标名称</param>
|
||||
/// <param name="imageSize">图标大小</param>
|
||||
/// <param name="foreColor">前景色</param>
|
||||
/// <param name="backColor">背景色</param>
|
||||
/// <returns>图标</returns>
|
||||
/// <param name="iconText">图标名称</param>
|
||||
/// <param name="imageSize">图标大小</param>
|
||||
/// <param name="foreColor">前景色</param>
|
||||
/// <param name="backColor">背景色</param>
|
||||
/// <returns>图标</returns>
|
||||
public static Icon GetIcon(FontIcons iconText, int imageSize = 32, Color? foreColor = null, Color? backColor = null)
|
||||
{
|
||||
Bitmap image = GetImage(iconText, imageSize, foreColor, backColor);
|
||||
return image != null ? ToIcon(image, imageSize) : null;
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取图标.
|
||||
/// 获取图标.
|
||||
/// </summary>
|
||||
/// <param name="iconText">图标名称.</param>
|
||||
/// <param name="imageSize">图标大小.</param>
|
||||
/// <param name="foreColor">前景色</param>
|
||||
/// <param name="backColor">背景色.</param>
|
||||
/// <param name="iconText">图标名称.</param>
|
||||
/// <param name="imageSize">图标大小.</param>
|
||||
/// <param name="foreColor">前景色</param>
|
||||
/// <param name="backColor">背景色.</param>
|
||||
/// <returns>Bitmap.</returns>
|
||||
/// <exception cref="FileNotFoundException">Font file not found</exception>
|
||||
public static Bitmap GetImage(FontIcons iconText, int imageSize = 32, Color? foreColor = null, Color? backColor = null)
|
||||
|
||||
Reference in New Issue
Block a user