Clearcanvas Library C#
Posted: 04 Mar 2025, 07:50
Ich rufe die folgende Funktion auf, um ein Bild von ClearCanvas Library auf ein Bildfeld zu setzen. Aber es gibt einen Fehler < /p>
Code: Select all
Unable to load bilinearinterpolation.dll the specified module could not be found
< /code>
Mein Code: < /p>
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);
}
}