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
 Magnify layer does not magnify DICOM image
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yeohray2

Malaysia
100 Posts

Posted - Sep 09 2020 :  06:48:13  Show Profile  Reply
Sample code below, with sample image attached. The image is loaded, and magnification layer is displayed. I can move the layer around, but the moment I resize the layer, the magnification disappears i.e. the layer becomes empty. Is there something I'm missing?

Thanks in advance.

procedure TfrmMainTestMagnify.FormShow(Sender: TObject);
begin
  viewMain.IO.LoadFromFileDICOM('f:\temp\sample.dcm');
  viewMain.Fit;

  viewMain.LayersAdd;
  viewMain.Layers[1].Magnify.Enabled := True;
  viewMain.Layers[1].Magnify.Rate := 2;
  viewMain.Layers[1].Magnify.Style := iemRectangle;
  viewMain.Layers[1].Width := 200;
  viewMain.Layers[1].Height := 200;

  viewMain.LayersCurrent := 1;
  viewMain.MouseInteract := [miMoveLayers, miResizeLayers];
end;


attach/yeohray2/20209964749_sample.zip
454.37 KB

xequte

38127 Posts

Posted - Sep 09 2020 :  17:21:51  Show Profile  Reply
Hi

I cannot reproduce that, and it looks like you are using an older version of ImageEn. Presumably that version did not cope with magnification of gray-scale images.

Please email me for an updated version of ImageEn.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

yeohray2

Malaysia
100 Posts

Posted - Sep 28 2020 :  12:07:13  Show Profile  Reply
Ok, this has been fixed in 9.2, thanks.

Another question - if I change the magnification rate in code while the magnification layer is active, how can I make the magnification layer reflect the new magnification rate immediately?

Right now, changing the rate in code doesn't update the magnification layer immediately. Only after I move the magnification layer does the layer use and show the new rate.

Thanks in advance.
Go to Top of Page

xequte

38127 Posts

Posted - Sep 28 2020 :  16:29:47  Show Profile  Reply
Hi

Have you called?

ImageEnView1.Update();

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

yeohray2

Malaysia
100 Posts

Posted - Sep 28 2020 :  21:09:40  Show Profile  Reply
Right, that was it, thanks. I was calling the layer's Update method previously.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: