• 大小: 0.34M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-02-23
  • 语言: C#
  • 标签: winform  Halcon  C#  加载图片  

资源简介

halcon配置到C#项目

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using HalconDotNet;
namespace HalconWinFrom
{
    public partial class Form1 : Form
    {
        private HTuple MainUI_Camera_WindowID;

        public Hobject RawImage = new Hobject();

        public Form1()
        {
            InitializeComponent();
        }

        public void OpenWindow()
        {
            long m_lWindowRow = 0 m_lWindowColumn = 0;
            HTuple Farther_windowHandle = this.pictureBox1.Handle;

            HOperatorSet.SetWindowAttr(“background_color“ “blue“);

            HOperatorSet.OpenWindow(m_lWindowRow m_lWindowColumn (HTuple)this.pictureBox1.Width (HTuple)this.pictureBox1.Height Farther_windowHandle “visible“ ““ out MainUI_Camera_WindowID);
        }

        public void LoadImage()
        

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        187  2020-06-13 10:50  HalconWinForm\HalconWinForm\App.config

     文件        187  2020-06-13 10:50  HalconWinForm\HalconWinForm\bin\Debug\HalconWinFrom.exe.config

     文件      24224  2020-06-13 11:27  HalconWinForm\HalconWinForm\bin\Debug\HalconWinFrom.vshost.exe

     文件        187  2020-06-13 10:50  HalconWinForm\HalconWinForm\bin\Debug\HalconWinFrom.vshost.exe.config

     文件        490  2016-07-16 19:44  HalconWinForm\HalconWinForm\bin\Debug\HalconWinFrom.vshost.exe.manifest

     文件      70823  2020-06-12 16:35  HalconWinForm\HalconWinForm\bin\x64\Debug\1.PNG

     文件    1279544  2014-11-15 02:27  HalconWinForm\HalconWinForm\bin\x64\Debug\halcondotnet.dll

     文件       9216  2020-06-13 11:27  HalconWinForm\HalconWinForm\bin\x64\Debug\HalconWinFrom.exe

     文件        187  2020-06-13 10:50  HalconWinForm\HalconWinForm\bin\x64\Debug\HalconWinFrom.exe.config

     文件      28160  2020-06-13 11:27  HalconWinForm\HalconWinForm\bin\x64\Debug\HalconWinFrom.pdb

     文件      24216  2020-06-13 11:29  HalconWinForm\HalconWinForm\bin\x64\Debug\HalconWinFrom.vshost.exe

     文件        187  2020-06-13 10:50  HalconWinForm\HalconWinForm\bin\x64\Debug\HalconWinFrom.vshost.exe.config

     文件        490  2016-07-16 19:44  HalconWinForm\HalconWinForm\bin\x64\Debug\HalconWinFrom.vshost.exe.manifest

     文件       1901  2020-06-13 11:25  HalconWinForm\HalconWinForm\Form1.cs

     文件       3440  2020-06-13 11:21  HalconWinForm\HalconWinForm\Form1.Designer.cs

     文件       5817  2020-06-13 11:21  HalconWinForm\HalconWinForm\Form1.resx

     文件       5030  2020-06-13 11:27  HalconWinForm\HalconWinForm\HalconWinForm.csproj

     文件        865  2020-06-13 10:50  HalconWinForm\HalconWinForm\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6963  2020-06-13 11:27  HalconWinForm\HalconWinForm\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        450  2020-06-13 11:27  HalconWinForm\HalconWinForm\obj\Debug\HalconWinForm.csproj.FileListAbsolute.txt

     文件        977  2020-06-13 11:27  HalconWinForm\HalconWinForm\obj\Debug\HalconWinForm.csproj.GenerateResource.Cache

     文件       2211  2020-06-13 11:27  HalconWinForm\HalconWinForm\obj\Debug\HalconWinForm.csprojResolveAssemblyReference.cache

     文件        726  2020-06-13 11:01  HalconWinForm\HalconWinForm\obj\Debug\HalconWinFrom.csproj.FileListAbsolute.txt

     文件        977  2020-06-13 11:01  HalconWinForm\HalconWinForm\obj\Debug\HalconWinFrom.csproj.GenerateResource.Cache

     文件       9783  2020-06-13 10:52  HalconWinForm\HalconWinForm\obj\Debug\HalconWinFrom.csprojResolveAssemblyReference.cache

     文件        180  2020-06-13 11:27  HalconWinForm\HalconWinForm\obj\Debug\HalconWinFrom.Form1.resources

     文件        180  2020-06-13 11:27  HalconWinForm\HalconWinForm\obj\Debug\HalconWinFrom.Properties.Resources.resources

     文件          0  2020-06-13 10:50  HalconWinForm\HalconWinForm\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2020-06-13 10:50  HalconWinForm\HalconWinForm\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2020-06-13 10:50  HalconWinForm\HalconWinForm\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

............此处省略40个文件信息

评论

共有 条评论