Skip to content
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

Add x/y extend modes and quality hint to images #77

Merged
merged 1 commit into from
Dec 12, 2024
Merged

Add x/y extend modes and quality hint to images #77

merged 1 commit into from
Dec 12, 2024

Conversation

dfrg
Copy link
Contributor

@dfrg dfrg commented Dec 12, 2024

Changes Image to support separate extend modes for each dimension.

Also adds an ImageQuality enum to allow the user to specify a hint for rendering. I choose low/medium/high variants rather than specific filters so that we're not making a specific commitment to any set.

Finally, renames Format to ImageFormat for consistency.

Changes `Image` to support separate extend modes for each dimension.

Also adds an `ImageQuality` enum to allow the user to specify a hint for rendering. I choose low/medium/high variants rather than specific filters so that we're not making a specific commitment to any set.

Finally, renames `Format` to `ImageFormat` for consistency.
@dfrg dfrg added this pull request to the merge queue Dec 12, 2024
Merged via the queue into main with commit 98b2b62 Dec 12, 2024
15 checks passed
@dfrg dfrg deleted the image-ext branch December 12, 2024 04:39
pub enum ImageQuality {
/// Lowest quality with best performance characteristics.
///
/// This is typically nearest neighbor sampling.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd quite like to see NearestNeighbour available as an explicit option, because for certain applications it is something you want to force.

waywardmonkeys added a commit to waywardmonkeys/peniko that referenced this pull request Dec 16, 2024
github-merge-queue bot pushed a commit that referenced this pull request Dec 17, 2024
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.

3 participants