月夜钓钱江鱼

醉后不知天在水,满船清梦压星河。
摘要: 打印过程中,获取可见的实际宽度作为打印,就没有收缩的了,图片收缩放大是模糊的原因之一,所以所见所得就是最好的方法 1 private void printDocNew_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArg 阅读全文
posted @ 2023-04-04 22:32 湘灵 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 生成setup.py文件,然后修改里面配置内容,如下所示: 1 #! python3 2 # -*- coding: utf-8 -*- 3 """ 4 This is a setup.py script generated by py2applet 5 6 Usage: 7 python setu 阅读全文
posted @ 2024-04-17 13:02 湘灵 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 以下是使用C#中的HttpWebRequest发送post请求的示例代码,请求头为form-data,可以上传文件。你可以将它封装成一个通用的方法。 1 public static string HttpPost(string url, Dictionary<string, string> para 阅读全文
posted @ 2023-11-30 17:30 湘灵 阅读(1024) 评论(0) 推荐(0) 编辑
摘要: 1 private BarTender.Application btAPP; 2 private BarTender.Format btFormat; 3 //初始化对象 4 btAPP = new BarTender.Application(); 5 6 try 7 { 8 btFormat = 阅读全文
posted @ 2023-11-30 11:11 湘灵 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 启动一个服务,使用FastAPI框架,增加跨域允许 1 # -*- coding: UTF-8 -*- 2 """ 3 @author: cc 4 @file: service.py 5 @time: 2021/05/24 6 """ 7 8 import sqlite3 9 from fastap 阅读全文
posted @ 2023-10-11 17:38 湘灵 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 1 static void Main(string[] args) 2 { 3 Mat frame = new Mat(); 4 var Capture = new VideoCapture("http://192.168.1.3:4747/video?1280x720"); // 这里是Droid 阅读全文
posted @ 2023-09-12 18:02 湘灵 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 1 import cv2 2 import numpy as np 3 4 org = cv2.imread('cards.png') 5 6 imgray = cv2.cvtColor(org, cv2.COLOR_BGR2GRAY) 7 cv2.imshow('imgray', imgray) 阅读全文
posted @ 2023-08-17 10:28 湘灵 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 在ABP vnext项目中,加载网站时出现以下错误: InvalidOperationException: Cannot find compilation library location for package 'System.Security.Cry‘ 找了好久没发现在哪出现问题,最后在http 阅读全文
posted @ 2023-07-20 11:54 湘灵 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 1 <!-- 2 气味照相机,上传图片 3 --> 4 <template> 5 <div class="main_container" > 6 <div class="bgimg_box" :style="'background-image: url(' + bgImg + ');'"> 7 <d 阅读全文
posted @ 2023-04-21 18:13 湘灵 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 1 注意 foreach 不能⽤ var ,也不能直接⽤ int ,需要 ref int ,注意 arr 要转换为 Span 。 2 3 int[] arr = { 1, 2, 3, 4, 5}; 4 5 Console.WriteLine(string.Join(",", arr)); // 1, 阅读全文
posted @ 2023-04-20 16:52 湘灵 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 1 /// <summary> 2 /// ping 域名地址是否通畅 3 /// </summary> 4 /// <returns></returns> 5 public async static Task<bool> PingAsync(string ip, int timeout = 500 阅读全文
posted @ 2023-04-10 16:39 湘灵 阅读(93) 评论(0) 推荐(0) 编辑