Juicy.Pixels icon indicating copy to clipboard operation
Juicy.Pixels copied to clipboard

Convert DynamicImage to Image a in Pixel class?

Open Zemyla opened this issue 6 years ago • 0 comments

I think the Pixel class should have a pair of functions to convert to and from a DynamicImage:

class (Storable (PixelBaseComponent a), Num (PixelBaseComponent a), Eq a) => Pixel a where
  ...

  toDynamicImage :: Image a -> DynamicImage

  fromDynamicImage :: DynamicImage -> Maybe (Image a)

Zemyla avatar Jun 21 '19 17:06 Zemyla