Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

newbie: Loading image to MedicalImageViewer
Started by mosquitooth at 07-20-2008 14:55. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  07-20-2008, 14:55
mosquitooth is not online. Last active: 7/20/2008 7:54:01 PM mosquitooth

Not Ranked
Joined on 06-02-2008
Posts 2
newbie: Loading image to MedicalImageViewer
Reply Quote
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
   Report 
  07-21-2008, 8:00
Qasem Lubani is not online. Last active: 7/16/2008 2:06:19 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,020
Re: newbie: Loading image to MedicalImageViewer
Reply Quote
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.
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
Post
LEAD Support Fo... » Developer » DICOM/Medical I... » newbie: Loading image to MedicalImageViewer

Powered by Community Server, by Telligent Systems