資源簡介
在大圖中找小圖
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Drawing;
using?System.Drawing.Imaging;
using?System.Linq;
using?System.Runtime.InteropServices;
using?System.Text;
using?System.Windows.Forms;
namespace?datuzhaoxiaotu
{
????class?FindSPic
????{
????????///?
????????///?在大圖里找小圖
????????///?
????????///?大圖
????????///?小圖
????????///?容錯值?取值0--255,數值越高效率越低,不建議超過50
????????///?
????????public?static?List?FindPic(int?left?int?top?int?width?int?height?Bitmap?S_bmp?Bitmap?P_bmp?int?similar)
????????{
????????????if?(S_bmp.PixelFormat?!=?PixelFormat.Format24bppRgb)?{?throw?new?Exception(“顏色格式只支持24位bmp“);?}
????????????if?(P_bmp.P
- 上一篇:c# 批量添加水印 源碼
- 下一篇:庫存管理系統源碼
評論
共有 條評論