T O P I C R E V I E W |
pierrotsc |
Posted - Feb 21 2012 : 09:59:24 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 |
3 L A T E S T R E P L I E S (Newest First) |
fab |
Posted - Feb 21 2012 : 23:22:36 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). |
pierrotsc |
Posted - Feb 21 2012 : 12:49:29 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 |
fab |
Posted - Feb 21 2012 : 11:01:38 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. |