Clearcanvas Library C#C#

Ein Treffpunkt für C#-Programmierer
Anonymous
 Clearcanvas Library C#

Post by Anonymous »

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);
}

}

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post