登录
首页 » C# » opencvsharp 打开图像并且使用WPF中Image显示

opencvsharp 打开图像并且使用WPF中Image显示

于 2020-12-04 发布
0 317
下载积分: 1 下载次数: 2

代码说明:

实现用opencvsharp打开图像,并且使用Image显示,其中包括Mat类型的转换方法。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 打印条形码
    打印条形码
    2016-03-09下载
    积分:1
  • 面试常考
    面试常考语法
    2015-10-07下载
    积分:1
  • C# 套打Demo
    套打Demo 【核心代码】using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Drawing.Printing;namespace Print_Demo{ public partial class Form1 : Form { public PrintDocument printDt = new PrintDocument(); //打印文档对象 Font printFont; //打印使用的字体 public Form1() { InitializeComponent(); } void printDt_PrintPage(object sender, PrintPageEventArgs e) { float pointX = 10; float pointY = 10; e.Graphics.DrawString("打印内容", new Font("宋体", 16F), Brushes.Black, pointX 60, pointY); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 26,pointX 300,pointY 26); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 35); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 56, pointX 300, pointY 56); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 65); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 86, pointX 300, pointY 86); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 95); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 116, pointX 300, pointY 116); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 125); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 146, pointX 300, pointY 146); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 155); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 176, pointX 300, pointY 176); e.Graphics.DrawString("打印内容", printFont, Brushes.Black, pointX, pointY 185); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 206, pointX 300, pointY 206); e.Graphics.DrawString("检测结果", printFont, Brushes.Black, pointX, pointY 233); e.Graphics.DrawString("通过", new Font("宋体",22F,FontStyle.Bold), Brushes.Black, pointX 90, pointY 225); e.Graphics.DrawLine(new Pen(Color.Black), pointX, pointY 265, pointX 300, pointY 265); e.Graphics.DrawString("单位名称", printFont, Brushes.Black, pointX, pointY 275); } private void Form1_Load(object sender, EventArgs e) { printDt.PrintPage = new PrintPageEventHandler(printDt_PrintPage); printFont = new Font("宋体", 12F); } private void btnPrint_Click(object sender, EventArgs e) { //PrintDialog printDlg = new PrintDialog(); //printDlg.Document = printDt; //printDlg.AllowPrintToFile = true; //printDlg.AllowCurrentPage = true; //printDlg.AllowSelection = true; //printDlg.ShowDialog(); //printDlg.ShowDialog(); printDt.Print(); } private void btnLook_Click(object sender, EventArgs e) { PrintPreviewDialog printPreview = new PrintPreviewDialog(); printPreview.PrintPreviewControl.Document = printDt; printPreview.ShowDialog(this); } }}
    2021-05-06下载
    积分:1
  • C# USB HID示例
    该代码提供简单的获取HID设备,并选择相对应的HID设备进行连接,并接收和输入数据的一个简单案例。适合于对USB HID设备刚入门的学习。其中部分代码参考网友。
    2019-08-19下载
    积分:1
  • AutoCAD .net 二次开发源码 下载
    用VS.NET2005开发ObjectARX程序 调试方法1.自动启动AutoCAD:选择工程根目录(解决方案下面的),鼠标右键-->属性-->工程属性对话框-->调试标签-->启动操作:启动外部程序-->浏览选择AutoCAD的安装目录,选择acad.exe。2.手动加载类库:(1) 按F5;(2) 自动启动AutoCAD,一路继续。(3) 在CAD命令行手动输入"netload",浏览到自己的动态连接库文件。3.自动加载类库:(1) 工程属性对话框-->调试标签-->启动选项-->命令行参数中输入:/nologo /b "....start.scr"让CAD自动在命令执行工程目录里的start.scr文件。(2) 然后就是在工程目录的根目录创建一个文本文件,名字取为“start.scr”,并在此文件中输入如下文本:netload "....indebuglubanren_2008.dll" (3) 按F5。4.单纯的数据库交互窗体操作,使用Windows 应用程序开发模式调试会更方便些:(1) 工程属性对话框-->应用程序标签-->程序集名称:Windows 应用程序。(2) 调试标签-->启动操作:启动项目。(3) 按F5。
    2013-08-30下载
    积分:1
  • C++实战源码-小蛇长得快(入门级实例602).zip
    C++实战源码-小蛇长得快(入门级实例602).zip
    2019-10-01下载
    积分:1
  • 正则提取网页中的图片示例源码
    正则提取网页中的图片示例源码
    2014-04-01下载
    积分:1
  • 自动化 绕胶机上位机程序
    自动化 绕胶机上位机程序
    2020-12-11下载
    积分:1
  • c#smtp发邮件代码
    c#smtp发邮件代码
    2015-06-16下载
    积分:1
  • C教程.pdf
    C 基础教程 - v1.4.1.pdf
    2021-05-06下载
    积分:1
  • 696516资源总数
  • 106571会员总数
  • 2今日下载