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
 Extending the non-image area

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 - Jun 28 2022 : 22:31:40
In some DICOM viewers, it's possible to pan an image outside of its boundaries. For e.g. in ImageEn, you can pan an image within its original dimensions e.g.



Is it possible to pan an image beyond its original dimensions e.g.



A couple of options come to mind e.g.
- place the imageen control within a panel, and when the user 'pans' the image, we actually move the imageen control around in the panel instead. However, when the ruler and grid lines are activated, the horizontal and vertical axis may not be visible if the top left of the image is currently not visible e.g.



- extend the canvas size of the original image. However, as we would allow users to edit the image, add annotations etc, and be expected to export the image in its original dimensions, we need to keep track of how many pixels we added to the original image. The zoom values would also need to be adjusted when displayed, and we would need to calculate values for the FitWidth, FitWindow etc functions manually.

So I was just wondering if ImageEn already has an option to customize the display as described above, or do you have any suggestions on how to implement such a feature?

Thank you in advance.

Regards
Ray
2   L A T E S T    R E P L I E S    (Newest First)
yeohray2 Posted - Jun 30 2022 : 00:39:10
Noted, thanks

Ray
xequte Posted - Jun 30 2022 : 00:24:14
Hi Ray

I'm afraid there is no way to do this with ImageEn at this time. The best method at present would be to resize the image:

https://www.imageen.com/help/TIEBitmap.Resize.html

Then before saving call resize again with negative values.

Of course, there are risks to this method, such as the user adding content to the "non-Image" area, so you would need special handling in that case.



Nigel
Xequte Software
www.imageen.com