首页 > 解决方案 > 使用 OpenSlide 的问题

问题描述

我是 C# 新手,无法让 OpenSlide 工作。我需要它才能读取 SVS 文件。下面是我使用的代码。我有可能在目录中遗漏了一些东西吗?我的老板使用了相同的代码,并且可以毫无问题地运行它。我收到以下错误:OpenSlideNET.OpenSlideUnsupportedFormatException: 'OpenSlideNET.OpenSlideUnsupportedFormatException' 类型的异常被抛出。

using OpenSlideNET;
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;

namespace SVSCurrent1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
           OpenSlideImage image = OpenSlideImage.Open("‪C:\\projects\\SVS\\JP2K-33003-1.svs");
        }
    }
}

标签: c#visual-studioopenslide

解决方案


推荐阅读