image icon indicating copy to clipboard operation
image copied to clipboard

add color type conversion

Open Its-Just-Nans opened this issue 9 months ago • 3 comments

Add a from_pixel() method

Its-Just-Nans avatar Mar 21 '25 14:03 Its-Just-Nans

There's already the PixelWithColorType trait that gives access to the ExtendedColorType associated with a pixel. Though looks like we might be missing a way to convert from ExtendedColorType -> ColorType

fintelia avatar Mar 21 '25 19:03 fintelia

I've updated the code

Its-Just-Nans avatar Mar 23 '25 11:03 Its-Just-Nans

Sorry for the delay. I think this would be better to expose by adding a method on ExtendedColorType that returns an Option<ColorType>.

fintelia avatar Apr 23 '25 04:04 fintelia