ImageHandles_v105

hh hh at hyperhh.de
Sat Sep 1 12:27:54 EDT 2018


Just uploaded hhImageHandles to "Sample Stacks".

This is a group of handles that is attachable to any image.
All you have to do (after copying the group to your stack):
send "setTarget <imageName>" to group "hhPoly"

Base position of the 9 handles (use a monospaced font):
   #######################
   ##         1         ##
   ##         |         ##
   ## 9 ----- 2 ----- 3 ##
   ## |               | ##
   ## 8               4 ##
   ## |               | ##
   ## 7 ----- 6 ----- 5 ##
   #######################
Actions:
a=Click and drag, b=Shift-Click or RightClick and drag

1: (a) Rotate, (b) Reset shape
2,6: (a) Height, (b) SkewX
4,8: (a) Width,  (b) SkewY
3,5,7,9: (a) 4-Point-Distortion
3,5,7,9: (b) ProportionalResize

Rotation is around the shapes's centroid (which can also be shown).

Changing height, width or proportional resizing preserves the
current shape!

hhImageHandles works on Mac/Win/Linux and comes in two variants.

[1] livecodeshare.runrev.com/stack/893
hhImageHandles6_LCS (pure LCScript) is for LC 6/7/8/9,
fast enough (only) on LC 6.

[2] livecodeshare.runrev.com/stack/894
hhImageHandles89B has the option to use JavaScript (of a browser
widget) and is with that at about 15-20 faster as LCS. 





More information about the use-livecode mailing list