ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Magnify layer does not magnify DICOM image

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
yeohray2 Posted - Sep 09 2020 : 06:48:13
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
4   L A T E S T    R E P L I E S    (Newest First)
yeohray2 Posted - Sep 28 2020 : 21:09:40
Right, that was it, thanks. I was calling the layer's Update method previously.
xequte Posted - Sep 28 2020 : 16:29:47
Hi

Have you called?

ImageEnView1.Update();

Nigel
Xequte Software
www.imageen.com
yeohray2 Posted - Sep 28 2020 : 12:07:13
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.
xequte Posted - Sep 09 2020 : 17:21:51
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