Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class Storable a => Color a where Source #
loadImage :: ColorFlag a -> FilePath -> IO (Either String (Image a)) Source #
loadImage
reads the image (with ColorFlag Y
, YA
, RGB
, or RGBA
) at the supplied path.
writePNG :: FilePath -> Image a -> IO () Source #
writePNG
writes the image passed to it out at the path path
in PNG format. The path must include the extension.
writeBMP :: FilePath -> Image a -> IO () Source #
writeBMP
writes the image passed to it out at the path path
in BMP format. The path must include the extension.
writeTGA :: FilePath -> Image a -> IO () Source #
writeTGA
writes the image passed to it out at the path path
in TGA format. The path must include the extension.
Instances
Instances
Eq YColor Source # | |
Show YColor Source # | |
Generic YColor Source # | |
Storable YColor Source # | |
Color YColor Source # | |
Defined in Data.STBImage.Color loadImage :: ColorFlag YColor -> FilePath -> IO (Either String (Image YColor)) Source # writePNG :: FilePath -> Image YColor -> IO () Source # writeBMP :: FilePath -> Image YColor -> IO () Source # writeTGA :: FilePath -> Image YColor -> IO () Source # red :: YColor -> Word8 Source # green :: YColor -> Word8 Source # | |
Show (ColorFlag YColor) Source # | |
type Rep YColor Source # | |
Defined in Data.STBImage.ColorTypes | |
data ColorFlag YColor Source # | |
Defined in Data.STBImage.Color |
YAColor | |
|
Instances
Eq YAColor Source # | |
Show YAColor Source # | |
Generic YAColor Source # | |
Storable YAColor Source # | |
Color YAColor Source # | |
Defined in Data.STBImage.Color loadImage :: ColorFlag YAColor -> FilePath -> IO (Either String (Image YAColor)) Source # writePNG :: FilePath -> Image YAColor -> IO () Source # writeBMP :: FilePath -> Image YAColor -> IO () Source # writeTGA :: FilePath -> Image YAColor -> IO () Source # red :: YAColor -> Word8 Source # green :: YAColor -> Word8 Source # | |
Show (ColorFlag YAColor) Source # | |
type Rep YAColor Source # | |
Defined in Data.STBImage.ColorTypes type Rep YAColor = D1 ('MetaData "YAColor" "Data.STBImage.ColorTypes" "stb-image-redux-0.2.1.3-inplace" 'False) (C1 ('MetaCons "YAColor" 'PrefixI 'True) (S1 ('MetaSel ('Just "_yaGreyscale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word8) :*: S1 ('MetaSel ('Just "_yaAlpha") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word8))) | |
data ColorFlag YAColor Source # | |
Defined in Data.STBImage.Color |
Instances
RGBAColor | |
|