Add the ability to choose the interpolation mode when resizing an image#1057
Add the ability to choose the interpolation mode when resizing an image#1057SableRaf merged 2 commits into
Conversation
|
Hi @jSdCool Thank you for the contribution, a few things of note:
|
Sorry, something went wrong.
|
I originally developed this feature before this repo was created and have made sure that everything was updated for the new repo, hence [e96c679].(e96c679) |
Sorry, something went wrong.
|
Hi @jSdCool. You'll want to There’s a guide here if you need it: https://www.atlassian.com/git/tutorials/rewriting-history/git-rebase |
Sorry, something went wrong.
|
Thanks that was helpful, did I do it right? |
Sorry, something went wrong.
|
Hi @jSdCool. You're close but this still doesn’t look quite right. Please make a fresh clone of the new repository and reapply your changes there. That will make sure everything is clean and ready to review. Thanks for your efforts! |
Sorry, something went wrong.
|
OK, should be clean now |
Sorry, something went wrong.
Stefterv
left a comment
There was a problem hiding this comment.
All good, with one quick fix but not necessarily blocking
Sorry, something went wrong.
|
Thanks for your contribution @jSdCool! This is a great addition to Processing 💙 @all-contributors please add @jSdCool for code and documentation |
Sorry, something went wrong.
Added the ability to choose witch interpolation mode to use when resizing an image.
To do this there is a new overload for PImage.resize() that takes 3 ints (width, height, interpolation mode) there are also 3 new PConstants for the mode they are: NEAREST_NEIGHBOR, BILINEAR, and BICUBIC. They have a value of 0 1 and 2 respectively.
This has been accomplished by utilizing the different interpolation modes provided by the java awt library that was already used for resizing images.