Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Image a = Image {}
- unsafeCastImage :: (Storable a, Storable b) => Image a -> Image b
- flipImage :: Storable a => Image a -> Image a
- loadImageBytes :: Int -> FilePath -> IO (Either String (Image CUChar))
- writeNChannelPNG :: Storable a => CInt -> FilePath -> Image a -> IO ()
- writeNChannelBMP :: Storable a => CInt -> FilePath -> Image a -> IO ()
- writeNChannelTGA :: Storable a => CInt -> FilePath -> Image a -> IO ()
Documentation
Image
is the least opinionated reasonable type to represent an image, just a vector of pixel Color
s (laid out top-to-bottom, left-to-right) and a size.
Instances
(Storable a, Eq a) => Eq (Image a) Source # | |
Show (Image a) Source # | |
Generic (Image a) Source # | |
type Rep (Image a) Source # | |
Defined in Data.STBImage.Immutable type Rep (Image a) = D1 ('MetaData "Image" "Data.STBImage.Immutable" "stb-image-redux-0.2.1.3-inplace" 'False) (C1 ('MetaCons "Image" 'PrefixI 'True) (S1 ('MetaSel ('Just "_pixels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Vector a)) :*: (S1 ('MetaSel ('Just "_width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "_height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))) |