by Robert Rayment (69 Submissions)
Category: Graphics
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (14 Votes)
Linear Transforms by Robert Rayment... Shows mapping a rectangular image onto a quadrilateral, circle, cylinder, cone and a sphere... This is re-worked from an old program of mine to speed it up and make more re-useable... Note that for the cylinder, cone and the sphere the image is only partly wrapped around... Five images are included... Only tested on Win XP... (Update 23 Jan 08)... Some redundant maths lines removed...(Update 25 Jan 08)... Simplified CommonDialog info and indicated where color bytes could be manipulated...Zip 185 KB.
Inputs
Picture
Assumes
Just run
Code Returns
Nil
API DeclarationsA few, see code.