Skip to content

Add Image::resized method #1313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 5, 2025
Merged

Add Image::resized method #1313

merged 2 commits into from
Jul 5, 2025

Conversation

DanRStevens
Copy link
Collaborator

Add Image Image::resized(Vector<int> newSize) const method, which returns a new Image object with the target newSize, and contains a copy of the source image with resizing done using nearest neighbour pixel matching.

Related:

Creates a new `Image` object, with the specified `newSize`, and copies the existing image into it, using nearest neighbour matching of pixels.
@DanRStevens DanRStevens merged commit 49007c5 into main Jul 5, 2025
8 checks passed
@DanRStevens DanRStevens deleted the addImageResized branch July 5, 2025 12:40
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