清除画布库 C#
我调用以下函数将 ClearCanvas 库渲染的图像设置为图片框。但它给出了一个错误 *无法加载bilinearinterpolation.dll,找不到指定的模块 *
//// Code
void OpenFile()
{
try
{
LocalSopDataSource dataSource = new LocalSopDataSource(fileName);
ImageSop imageSop = new ImageSop(dataSource);
//IPresentationImage presentationImage =
// PresentationImageFactory.Create(imageSop);
IPresentationImage theOne = null;
foreach (IPresentationImage image in PresentationImageFactory.Create(imageSop))
{
theOne = image;
}
Bitmap bmp = new Bitmap(500, 500);
theOne.DrawToBitmap(bmp);
pictureBox1.Image = bmp;
}
catch (Exception e2)
{
MessageBox.Show(e2.Message);
}
}
I call the following function to set an image rendered by ClearCanvas library to a picture box. But it gives an error
*Unable to load bilinearinterpolation.dll the specified module could not be found *
//// Code
void OpenFile()
{
try
{
LocalSopDataSource dataSource = new LocalSopDataSource(fileName);
ImageSop imageSop = new ImageSop(dataSource);
//IPresentationImage presentationImage =
// PresentationImageFactory.Create(imageSop);
IPresentationImage theOne = null;
foreach (IPresentationImage image in PresentationImageFactory.Create(imageSop))
{
theOne = image;
}
Bitmap bmp = new Bitmap(500, 500);
theOne.DrawToBitmap(bmp);
pictureBox1.Image = bmp;
}
catch (Exception e2)
{
MessageBox.Show(e2.Message);
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我解决了这个问题。我所做的
哇。它起作用了。它会对你很有用。
I solved the problem. What I have done
Wow. It worked. It will work for you well.