[Pharo-project] Scaling dropped graphic
A DrGeo user dragging and dropping a picture in DrGeo related me the graphic can't be scaled from the halo scale icon. It was possible in the past, what's wrong? DrGeo version was based on Pharo 1.2. Hilaire === 2. Open Graphic in a Window - allows me to drop in the graphic, but it does not scale/zoom with the geometry. -- Education 0.2 -- http://blog.ofset.org/hilaire
Hello Hilaire It's because in past image opened in World by ScetchMorph. Now Image morph used for this. But it is not support scaling by resizing morph. ScetchMorph were removed from Pharo. Maybe something similar exists in system. 2011/3/26 Hilaire Fernandes <hilaire.fernandes@gmail.com>
A DrGeo user dragging and dropping a picture in DrGeo related me the graphic can't be scaled from the halo scale icon. It was possible in the past, what's wrong?
DrGeo version was based on Pharo 1.2.
Hilaire
=== 2. Open Graphic in a Window - allows me to drop in the graphic, but it does not scale/zoom with the geometry.
-- Education 0.2 -- http://blog.ofset.org/hilaire
Hello Denis, I have noted when you rotate the image morph mutates to transformation morph (TransformationMorph), then you can scale it. So a solution is that when scaling the image morph mutates to a transformation morph as well. Sadly I don't see where it could be done. Hilaire Le 26/03/2011 17:58, Denis Kudriashov a écrit :
Hello Hilaire
It's because in past image opened in World by ScetchMorph. Now Image morph used for this. But it is not support scaling by resizing morph. ScetchMorph were removed from Pharo. Maybe something similar exists in system.
2011/3/26 Hilaire Fernandes <hilaire.fernandes@gmail.com <mailto:hilaire.fernandes@gmail.com>>
A DrGeo user dragging and dropping a picture in DrGeo related me the graphic can't be scaled from the halo scale icon. It was possible in the past, what's wrong?
DrGeo version was based on Pharo 1.2.
Hilaire
=== 2. Open Graphic in a Window - allows me to drop in the graphic, but it does not scale/zoom with the geometry.
-- Education 0.2 -- http://blog.ofset.org/hilaire
-- Education 0.2 -- http://blog.ofset.org/hilaire
I believe you can do it by sending #addFlexShell to the ImageMorph. Cheers Richo On Sat, Mar 26, 2011 at 2:09 PM, Hilaire Fernandes < hilaire.fernandes@gmail.com> wrote:
Hello Denis,
I have noted when you rotate the image morph mutates to transformation morph (TransformationMorph), then you can scale it. So a solution is that when scaling the image morph mutates to a transformation morph as well. Sadly I don't see where it could be done.
Hilaire
Le 26/03/2011 17:58, Denis Kudriashov a écrit :
Hello Hilaire
It's because in past image opened in World by ScetchMorph. Now Image morph used for this. But it is not support scaling by resizing morph. ScetchMorph were removed from Pharo. Maybe something similar exists in system.
2011/3/26 Hilaire Fernandes <hilaire.fernandes@gmail.com <mailto:hilaire.fernandes@gmail.com>>
A DrGeo user dragging and dropping a picture in DrGeo related me the graphic can't be scaled from the halo scale icon. It was possible in the past, what's wrong?
DrGeo version was based on Pharo 1.2.
Hilaire
=== 2. Open Graphic in a Window - allows me to drop in the graphic, but it does not scale/zoom with the geometry.
-- Education 0.2 -- http://blog.ofset.org/hilaire
-- Education 0.2 -- http://blog.ofset.org/hilaire
Hi, If you want to rescale an image from the halo, I think that all is here. it's just that #isFlexMorph should be redefined to return true in ImageMorph I guess. try with: ImageMorph>>#isFlexMorph ^ true it works here. Cheers Alain Le 26/03/2011 18:48, Ricardo Moran a écrit :
I believe you can do it by sending #addFlexShell to the ImageMorph.
Cheers Richo
On Sat, Mar 26, 2011 at 2:09 PM, Hilaire Fernandes <hilaire.fernandes@gmail.com <mailto:hilaire.fernandes@gmail.com>> wrote:
Hello Denis,
I have noted when you rotate the image morph mutates to transformation morph (TransformationMorph), then you can scale it. So a solution is that when scaling the image morph mutates to a transformation morph as well. Sadly I don't see where it could be done.
Hilaire
Le 26/03/2011 17:58, Denis Kudriashov a écrit : > Hello Hilaire > > It's because in past image opened in World by ScetchMorph. Now Image > morph used for this. But it is not support scaling by resizing morph. > ScetchMorph were removed from Pharo. > Maybe something similar exists in system. > > 2011/3/26 Hilaire Fernandes <hilaire.fernandes@gmail.com <mailto:hilaire.fernandes@gmail.com> > <mailto:hilaire.fernandes@gmail.com <mailto:hilaire.fernandes@gmail.com>>> > > A DrGeo user dragging and dropping a picture in DrGeo related me the > graphic can't be scaled from the halo scale icon. It was possible in the > past, what's wrong? > > DrGeo version was based on Pharo 1.2. > > Hilaire > > === > 2. Open Graphic in a Window - allows me to drop in the graphic, but it > does not scale/zoom with the geometry. > > > > -- > Education 0.2 -- http://blog.ofset.org/hilaire > > >
-- Education 0.2 -- http://blog.ofset.org/hilaire
thanks alain alain do you have an expression to see it :) hilaire let us kow if this fix your problem and we should probably open a ticket. Stef On Mar 26, 2011, at 8:34 PM, Alain Plantec wrote:
Hi, If you want to rescale an image from the halo, I think that all is here. it's just that #isFlexMorph should be redefined to return true in ImageMorph I guess.
try with: ImageMorph>>#isFlexMorph ^ true
it works here.
Cheers Alain
Le 26/03/2011 18:48, Ricardo Moran a écrit :
I believe you can do it by sending #addFlexShell to the ImageMorph.
Cheers Richo
On Sat, Mar 26, 2011 at 2:09 PM, Hilaire Fernandes <hilaire.fernandes@gmail.com <mailto:hilaire.fernandes@gmail.com>> wrote:
Hello Denis,
I have noted when you rotate the image morph mutates to transformation morph (TransformationMorph), then you can scale it. So a solution is that when scaling the image morph mutates to a transformation morph as well. Sadly I don't see where it could be done.
Hilaire
Le 26/03/2011 17:58, Denis Kudriashov a écrit :
Hello Hilaire
It's because in past image opened in World by ScetchMorph. Now Image morph used for this. But it is not support scaling by resizing morph. ScetchMorph were removed from Pharo. Maybe something similar exists in system.
2011/3/26 Hilaire Fernandes <hilaire.fernandes@gmail.com <mailto:hilaire.fernandes@gmail.com> <mailto:hilaire.fernandes@gmail.com <mailto:hilaire.fernandes@gmail.com>>>
A DrGeo user dragging and dropping a picture in DrGeo related me the graphic can't be scaled from the halo scale icon. It was possible in the past, what's wrong?
DrGeo version was based on Pharo 1.2.
Hilaire
=== 2. Open Graphic in a Window - allows me to drop in the graphic, but it does not scale/zoom with the geometry.
-- Education 0.2 -- http://blog.ofset.org/hilaire
-- Education 0.2 -- http://blog.ofset.org/hilaire
Thanks Alain, Steph, the issue is there with the suggested fix: http://code.google.com/p/pharo/issues/detail?id=3882 Hilaire Le 27/03/2011 09:41, Stéphane Ducasse a écrit :
thanks alain
alain do you have an expression to see it :) hilaire let us kow if this fix your problem and we should probably open a ticket.
Stef
On Mar 26, 2011, at 8:34 PM, Alain Plantec wrote:
Hi, If you want to rescale an image from the halo, I think that all is here. it's just that #isFlexMorph should be redefined to return true in ImageMorph I guess.
try with: ImageMorph>>#isFlexMorph ^ true
it works here.
Cheers Alain
Le 26/03/2011 18:48, Ricardo Moran a écrit :
I believe you can do it by sending #addFlexShell to the ImageMorph.
Cheers Richo
On Sat, Mar 26, 2011 at 2:09 PM, Hilaire Fernandes <hilaire.fernandes@gmail.com <mailto:hilaire.fernandes@gmail.com>> wrote:
Hello Denis,
I have noted when you rotate the image morph mutates to transformation morph (TransformationMorph), then you can scale it. So a solution is that when scaling the image morph mutates to a transformation morph as well. Sadly I don't see where it could be done.
Hilaire
Le 26/03/2011 17:58, Denis Kudriashov a écrit :
Hello Hilaire
It's because in past image opened in World by ScetchMorph. Now Image morph used for this. But it is not support scaling by resizing morph. ScetchMorph were removed from Pharo. Maybe something similar exists in system.
2011/3/26 Hilaire Fernandes <hilaire.fernandes@gmail.com <mailto:hilaire.fernandes@gmail.com> <mailto:hilaire.fernandes@gmail.com <mailto:hilaire.fernandes@gmail.com>>>
A DrGeo user dragging and dropping a picture in DrGeo related me the graphic can't be scaled from the halo scale icon. It was possible in the past, what's wrong?
DrGeo version was based on Pharo 1.2.
Hilaire
=== 2. Open Graphic in a Window - allows me to drop in the graphic, but it does not scale/zoom with the geometry.
-- Education 0.2 -- http://blog.ofset.org/hilaire
-- Education 0.2 -- http://blog.ofset.org/hilaire
participants (5)
-
Alain Plantec -
Denis Kudriashov -
Hilaire Fernandes -
Ricardo Moran -
Stéphane Ducasse