ImageHandles_v105

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

ImageHandles_v105

Stephen MacLean via use-livecode
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.


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: ImageHandles_v105

Stephen MacLean via use-livecode
Thanks Hermann :)

On Sat, Sep 1, 2018 at 7:28 PM hh via use-livecode <
[hidden email]> wrote:

> 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.
>
>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: ImageHandles_v105

Stephen MacLean via use-livecode
In reply to this post by Stephen MacLean via use-livecode
I will definitely check this out.
Thanks!
Tom B.



--
Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: ImageHandles_v105

Stephen MacLean via use-livecode
In reply to this post by Stephen MacLean via use-livecode
Hi Hermann. That was fun to explore. Your work on graphics and images is amazing.


Best regards,

Mark Talluto
livecloud.io <http://livecloud.io/>
nursenotes.net <http://nursenotes.net/>
canelasoftware.com <http://www.canelasoftware.com/>




> On Sep 1, 2018, at 9:27 AM, hh via use-livecode <[hidden email]> wrote:
>
> Just uploaded hhImageHandles to "Sample Stacks".


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode