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
 fit and center are not always working

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
Dany Posted - Oct 24 2024 : 08:18:25
Hello;

In some cases, on the ImageEnView component the image goes out of marging to the left-top, even is CENTER=True, and even after executing FIT, but I can't find out why. And then, every image I send to this ImageEnView will be seen with the same problem.

For example, I do this:

ImgDisplay.LayersMerge(True); // to merge leyer 1 to the backwround.
ImgDisplay.IEBitmap.Resample(FMaxSize, FMaxSize, rfLanczos3, True, True); // to be sure the image is not bigger than the accepted size.

And after, all the images I load on the ImgDisplay component will be out of marging to the left-top, even I do a clearall on it before, and even if I excecute FIT after loading the image. Here is an example:



You can see on the left the whole image. If I change to other image in the left, it will be showed with same error.

What can it be my error?

Thank you!


2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 24 2024 : 18:28:22
Hi

You should call ImageEnView1.Update() after ImageEnView1.IEBitmap.Resample(). Does that make any difference?

Nigel
Xequte Software
www.imageen.com
Dany Posted - Oct 24 2024 : 12:59:52
Hi,

Let me add: I tried to see what happens if I do not do the resample, but the problem is the same. It seems it happen when layer 1 is bigger than layer 0. And it only happens if I moved the layer from the initial position.