ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder
ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Assign dicom image from ImageEnMview to ImagenVect
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic   

jwest

Brazil
67 Posts

Posted - Jun 08 2011 :  14:30:12  Show Profile  Reply
Hi,

Firstly, congratulations for your new forum layout.

I am trying assign a dicom image loaded in ImageEnMview to ImageEnVect or ImageenView without success. I get an error.

I have tried using Streams but the image in ImageEnVect or ImageenView doesnīt shows.

I need load the dicom images from a pacs server, store them in a TimageEnMview thumbnail. When I click on selected image on TimageEnMview thumbnail I need show it in a TimageenVect.

I canīt save the image to disk and load again in TimageenVect because the image is large and it will take a long time.

Please, is there a way to do it?

Regards,

Luiz

jwest

Brazil
67 Posts

Posted - Jun 08 2011 :  19:10:15  Show Profile  Reply

Now, I can assign an image from TimageenMview to TimageEnView. But, if I try assign an Image(dicom) from TimageenMview to TImageEnVect, I get an error.
Go to Top of Page

support

3 Posts

Posted - Jun 08 2011 :  22:34:13  Show Profile  Reply
The example in inputoutput/dicom does exactly what you need. If you load the DICOM using TImageEnMView.MIO.LoadFromFileAuto() then you can assign a frame to TImageEnVect/TImageEnView executing:

ImageEnMView1.CopyToIEBitmap( idx, ImageEnView1.IEBitmap );

Make sure that ImageEnView.LegacyBitmap is "false" (that means "do not use TBitmap to store images"), so it can handle all DICOM formats (8 bit gray scale, 16 bit gray scale, etc..).
Go to Top of Page

jwest

Brazil
67 Posts

Posted - Jun 09 2011 :  05:21:34  Show Profile  Reply
Thank you,

If I use this code:
ImageEnMView1.CopyToIEBitmap( idx, ImageEnView1.IEBitmap );

It works.

But,
ImageEnMView1.CopyToIEBitmap( idx, ImageEnVect1.IEBitmap );

Give me an access violation.

I need to use ImageEnVect.

Regards,

Luiz
Go to Top of Page

jwest

Brazil
67 Posts

Posted - Jun 09 2011 :  05:58:58  Show Profile  Reply
Hi,

My mistake. Problem solved. Legacybitmap was setted to True.

Thank you very much.

Luiz
Go to Top of Page
  Previous Topic Topic   
 New Topic  Reply to Topic
 Printer Friendly
Jump To: