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
 size of a layer
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

pierrotsc

USA
499 Posts

Posted - Feb 21 2012 :  09:59:24  Show Profile  Reply
I am trying to accomplish something and I cannot figure it out.
When i start my program, I have an imageenview of 850x850.
I add another blank layer and then I am inserting an image onto this layer from a blobstream from my database.
It works fine except that the imported image does not fit. I still have a canvas of 850x850 and the image from the blob is 2000x2000 so I only see the top left corner of the image.
Doing a imageen.fit does not do anything.
I tried to set the layerssync to true but that has no effect either.
How can i import my image from a blob and have the canvas to fit the image?
thanks.
P

fab

1310 Posts

Posted - Feb 21 2012 :  11:01:38  Show Profile  Reply
Coordinates are still based on the background (layer 0) size. Fit method adapts the Zoom to full show background layer (this because usually the background layer is bigger than other layers).
Try to set a little value for Zoom property and you will see also the second layer.
Go to Top of Page

pierrotsc

USA
499 Posts

Posted - Feb 21 2012 :  12:49:29  Show Profile  Reply
The reason I am adding the new image on top of the background is for rotation.
If i load the image and it is the background, I cannot rotate it even if it is unlocked. Let me rephrase that. After i load the image and try to rotate it (Unlocked background), it does not rotate. If i zoom, then suddenly the image displays a rotation and i would be able to rotate it then. But i think imageen becomes unstable.
I have to assume that the background layer is not suitable for sizing manipulation. Am I correct?
Still using 3.1.2
Thanks.
P
Go to Top of Page

fab

1310 Posts

Posted - Feb 21 2012 :  23:22:36  Show Profile  Reply
Yes, it is correct. Background layer is not suitable for sizing/moving/rotation manipulations. For this reason it is locked for default.
Anyway it could not make ImageEn unstable: you should have only unexpected behaviors (on scrolls, zooms).
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: