stb-image-redux-0.2.1.3: Image loading and writing microlibrary
Safe HaskellNone
LanguageHaskell2010

Data.STBImage.Immutable

Synopsis

Documentation

data Image a Source #

Image is the least opinionated reasonable type to represent an image, just a vector of pixel Colors (laid out top-to-bottom, left-to-right) and a size.

Constructors

Image 

Fields

Instances

Instances details
(Storable a, Eq a) => Eq (Image a) Source # 
Instance details

Defined in Data.STBImage.Immutable

Methods

(==) :: Image a -> Image a -> Bool #

(/=) :: Image a -> Image a -> Bool #

Show (Image a) Source # 
Instance details

Defined in Data.STBImage.Immutable

Methods

showsPrec :: Int -> Image a -> ShowS #

show :: Image a -> String #

showList :: [Image a] -> ShowS #

Generic (Image a) Source # 
Instance details

Defined in Data.STBImage.Immutable

Associated Types

type Rep (Image a) :: Type -> Type #

Methods

from :: Image a -> Rep (Image a) x #

to :: Rep (Image a) x -> Image a #

type Rep (Image a) Source # 
Instance details

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))))

flipImage :: Storable a => Image a -> Image a Source #

Utility function to flip images, e.g. for use with OpenGL