Skip to content

Conversation

@jSdCool
Copy link

@jSdCool jSdCool commented Nov 23, 2023

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.

jSdCool and others added 2 commits November 23, 2023 00:02
…zing 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant