Skip to content

Add convert_color to Colorspace#103

Merged
messense merged 1 commit into
messense:mainfrom
ginnyTheCat:convert_color
Feb 5, 2025
Merged

Add convert_color to Colorspace#103
messense merged 1 commit into
messense:mainfrom
ginnyTheCat:convert_color

Conversation

@ginnyTheCat

Copy link
Copy Markdown
Collaborator

This add the convert_color and convert_color_into methods to Colorspace, allowing you to convert colors between colorspaces into a Vec<f32> or a &mut [f32]. It asserts whether the input or output is long enough to ensure no out of bounds reads or writes.

@messense messense merged commit 16335de into messense:main Feb 5, 2025
@ginnyTheCat ginnyTheCat deleted the convert_color branch February 5, 2025 16:01
vinxv pushed a commit to vinxv/mupdf-rs that referenced this pull request Mar 8, 2025
vinxv pushed a commit to vinxv/mupdf-rs that referenced this pull request Mar 8, 2025
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.

2 participants