Sign in to follow this  
crazyDev

Is it possible to do free form image cropping in Phaser?

Recommended Posts

So you want to crop a polygon from a shape (and have rest of pixels set to transparent) ? You could store the polygon where the user clicks, maybe get a library for that, and then for each point in the image if it is also in the polygon, save it, otherwise remove it. Most probably Phaser doesn't have this built in, as it is not a core trivial functionality.

Share this post


Link to post
Share on other sites

My goal is to take an image and make a cartoon out of it like Saddam Hussein's character in the South Park movie. So the goal is to have the user select a person's face out of the image and then divide it into the lower jaw and rest of the face, and have them saved for use as resources. Here you can see what I'm trying to achieve:

 

https://www.youtube.com/watch?v=yADrtfAmLTo

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.