syntaxerror Posted November 27, 2008 Share Posted November 27, 2008 Would it be possible to, using GD, create a parallelogram rendering of an image? Any tips would be a plus, thanks Link to comment https://forums.phpfreaks.com/topic/134475-create-transform-an-image-to-a-slanted-parallelogram/ Share on other sites More sharing options...
willpower Posted November 27, 2008 Share Posted November 27, 2008 Yes it would. Youd need to understand the math behind the creation and look at GD's pixel mapping...ie imagesetpixel function. I dont know how to do it but it would mean getting the colour value of each pixel in the image and mathematically outputing it again in the desired shape. Link to comment https://forums.phpfreaks.com/topic/134475-create-transform-an-image-to-a-slanted-parallelogram/#findComment-700244 Share on other sites More sharing options...
Prismatic Posted November 27, 2008 Share Posted November 27, 2008 Quick php.net search http://us.php.net/manual/en/function.imagecopy.php#61693 Link to comment https://forums.phpfreaks.com/topic/134475-create-transform-an-image-to-a-slanted-parallelogram/#findComment-700253 Share on other sites More sharing options...
syntaxerror Posted November 27, 2008 Author Share Posted November 27, 2008 that's exactly what i need, 'skew' was the keyword in my mind, but it didnt' occur to me that's what someone else would use, funny many thanks Link to comment https://forums.phpfreaks.com/topic/134475-create-transform-an-image-to-a-slanted-parallelogram/#findComment-700270 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.