Clearcanvas Library C#

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Clearcanvas Library C#

by Anonymous » 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);
}

}

Top