Welcome Guest (Log in)

HHMockup (Perspective fourpoint-distortion)

LC 8+9 (47) | Browser widget (24) | Images (23) | Affine transforms (4) | Perspective (4)
Expander triangle
  • Author
  • Rating
  • Type
  • Revision
  • Downloaded
  • Updated
  • Hermann Hoch
  • StarStarStarStarStar
  • Stack
  • 1
  • 840 Times
  • 25 February 2018
## v1.6.2 2018-02-26 ... First version on LiveCodeShare (Sample stacks)
(= enhanced version of the stack I used to produce the demos for my LCGlobal talk "Perspective and affine transformations of images" in Nov 2017. Get the slides of the talk here: https://hyperhh.de/LCG2017/hhTransformsLCG17-fullpaged.pdf ).

Usestack hhMockup with latest versions of LC 8/9 on Mac/ Win 7+10/ linux(Ubuntu).

The stack contains a *very fast* version of the perspective fourpoint image transformation given in Raspberry Pi stacks collection #85 (pure LC Script, available also here):
JavaScript is used for the lengthy transforms of the imageData and applying a few image filters. Everything else, especially the computation of the "perspective matrix" and all the display is still LC Script.

You can scale, skew, translate and rotate images in single or combined actions and perspective transform images up to screen size.

The perspective transform is also used to show images in a given MOCKUP frame. There is also demo of running a gif (EM's jockey) in such mockup frames.

There are still more details to explore (e.g. expanding the transform of an image horizontally, vertically or both).

You can import your images and export your transformed artwork.
Have fun!

Ajax Loader
Expander triangle
User Comments
Expander triangle