- 博客(22)
- 资源 (5)
- 收藏
- 关注
原创 aspnetcore 踩坑记录
1、静态文件访问顺序很重要,不然会导致wwwroot资源访问不到 app.UseStaticFiles(); app.UseStaticFiles(new StaticFileOptions { FileProvider = new PhysicalFileProvider( Path.Combine(env.ContentRootPath, "StaticFil...
2021-02-04 09:57:12 234
转载 解决GitHub的raw.githubusercontent.com无法连接问题(转)
转载解决GitHub的raw.githubusercontent.com无法连接问题 - sinferwu - 博客园 (cnblogs.com)https://site.ip138.com/raw.Githubusercontent.com/输入raw.githubusercontent.com查询IP地址修改hosts Ubuntu,CentOS及macOS直接在终端输入sudo vi /etc/hosts添加以下内容保存即可 (IP地址查询后相应修改,可以...
2020-10-23 14:30:10 5635 1
原创 C#程序打开资源管理器(定位到文件)360弹出阻止窗口
C#打开资源管理器代码 /// <summary> /// 打开资源管理器 /// </summary> /// <param name="path"></param> private void OpenFilePath(string path) ...
2019-07-12 16:12:37 1284 2
原创 C#WinForm 打开IE设置状态栏隐藏
private static void StartIE() { object[] oParameter = new object[1]; //InternetExplorer.Application tIE = Type.GetTypeFromProgID("InternetExplorer...
2019-07-03 11:16:35 445
原创 C# 线程池ThreadPool 执行多个参数方法
ThreadPool.SetMinThreads(1, 1); ThreadPool.SetMaxThreads(10, 10);ThreadPool.QueueUserWorkItem(p={ //此次访执行代码});示例:ThreadPool.QueueUserWorkItem(p => ...
2019-05-30 16:56:56 4449
原创 记录下JP2000图像解析
工作中遇到jp2000的图像数据,不能直接转换成bitmap网上找的图像处理库ImageMagick,我使用的C#版本ImageMagick.NET。ImageMagick.MagickImage img = new ImageMagick.MagickImage(encData_byte);img .ToBitmap();...
2019-05-07 09:18:19 461
原创 WPF树控件自定义样式
<!--树控件样式--> <PathGeometry x:Key="TreeArrow" Figures="M0,0 L0,6 L6,0 z" /> <Style x:Key="ExpandCollapseToggleStyle" TargetType="{x:Type ToggleButton}"> <Sett...
2019-03-20 15:56:20 894
原创 wpf 窗口自定义标题栏
XAML内容:<Window x:Class="Demo.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:...
2019-03-19 16:36:47 3774
转载 wpf 窗口 WindowStyle="None" 不遮盖状态栏
在初始化中设置: FullScreenManager.RepairWpfWindowFullScreenBehavior(this);保证不遮盖系统状态栏。FullScreenManager代码参考:http://www.cnblogs.com/zhouyinhui/archive/2008/11/04/1326188.html...
2019-03-19 16:35:04 1172
原创 wpf 窗口上面白边 WindowStyle="None"
wpf 窗口 设置无边框WindowStyle="None" 后,窗口上面留有一条白边,设置 AllowsTransparency="True" 后白边消失,但窗口不能通过拖动边缩放使用WPF Shell 解决,下载 官网地址找不到了,从nugget下载https://www.nuget.org/packages/WPF.Shell.Integration.Library<...
2019-02-28 11:49:57 3335
原创 cmake+vs2010+opencv320编译
转自:https://blog.csdn.net/zengraoli/article/details/71178349https://blog.csdn.net/liu_jianjian/article/details/75909868opencv_ffmpeg、ippcv可能下载失败,手动下载,放到对应目录下 opencv-3.2.0\3rdparty\注意改变这里的选项a、修...
2019-02-20 16:25:19 286
原创 人脸识别资料
OpenCV 中 CascadeClassifier 检测人脸区域, asmlibrary.dll 可以检测人脸68点,需要先检测人脸区域https://github.com/greatyao/asmlibrary ArcFace 检测人脸、人脸比对,测试1.0版本比对准确率不太好 https://ai.arcsoft.com.cn/product/arcface.html 百...
2019-02-19 16:43:53 311
原创 图像RAW转bitmap
using namespace std;int CIIZW_RawToBmp(unsigned char *pRawImage, int ImageHeight, int ImageWidth, int bitcount);int main(){ FILE * fp = fopen("E:\\temp\\SLAP_4_IMAGE_LEFT.raw", "rb"); unsigned char *...
2018-06-05 14:01:44 2217
原创 Winform TreeView OwnerDrawText
winform 开发,使用TreeView控件,需要对节点单独设置颜色,控件本身有焦点时,选中的样式是一样的,所以使用OwnerDrawText 自己实现使用自定义颜色绘制文本 private Brush treeBgColor = new SolidBrush(Color.FromArgb(51, 153, 255)); private void treeViewIm...
2018-03-27 11:16:14 508
原创 C# 生成8位灰度图bmp
C# 生成8位灰度图bmp public static void SaveBmp8(Bitmap bitmap,string savePath) { int width = bitmap.Width; int height = bitmap.Height; short fiBitCount =
2017-10-13 16:33:14 4220
原创 C# wpf BitmapImage 跨线程访问
//直接跨使用BitmapImage报异常 不能跨线程访问BitmapImage对象//借助BitmapFrame 来访问 var img = new BitmapImage(new Uri(fileName)); this.imgControl.Dispatcher.Invoke(new Action(delegate {
2017-10-13 13:58:01 2293 1
转载 Bitmap位图结构
Bitmap位图结构一、位图数据结构BMP文件的数据按照从文件头开始的先后顺序分为四个部分:◆ 位图文件头(bmp file header): 提供文件的格式、大小等信息◆ 位图信息头(bitmap information):提供图像数据的尺寸、位平面数、压缩方式、颜色索引等信息◆ 调色板(color palette):可选,如使用索引来表示图像,调色板就是索引与其对应的颜色
2017-10-12 17:20:34 2083 1
原创 SuperMap for Javascript 气泡阴影显示问题
使用二维带阴影气泡FramedCloud,要有阴影不能加载下面这俩css,popup = new SuperMap.Popup.FramedCloud("chicken", marker.getLonLat(), null, contentHTML, null, true); popup.mixSize = 200; map.addP
2017-05-19 08:48:04 570
原创 File GeoDatabase API学习
File GeoDatabase API学习需求:读取GDB数据,读取(空间库、属性库)数据集名称、字段、字段别名、数据
2016-04-26 09:39:45 1356
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人