LEADTOOLS Support
General
General Questions
newbie: Loading image to MedicalImageViewer
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Sunday, July 20, 2008 9:50:53 AM(UTC)
Groups: Registered
Posts: 5
Hi,
I just started using LEADTools and wrote the following piece of code:
RasterCodecs.Startup()
Dim _codecs As RasterCodecs = New RasterCodecs()
Dim _image As RasterImage
_image = _codecs.Load("C:\Sample.jpg")
MedicalViewer1.Cells.Add(New MedicalViewerCell(_image, True, 1, 1))
RasterCodecs.Shutdown()
Unfortunately, this code fails with "Invalid File Format". Any ideas ?
Best wishes,
Peter
#2
Posted
:
Monday, July 21, 2008 2:55:39 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Did you include all the codec DLLs in your project? There is one or more DLLs for each file format to enable you to load images in LEADTOOLS such as Leadtools.Codecs.Tif.dll and Leadtools.Codecs.Fax.dll to view TIFF files and leadtools.codecs.cmp to load JPEG images.
LEADTOOLS Support
General
General Questions
newbie: Loading image to MedicalImageViewer
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.