bitmaps-0.2.6.3: Bitmap library

Safe HaskellNone
LanguageHaskell2010

Data.Bitmap.StringRGB24A4VR.Internal

Synopsis

Documentation

data BitmapImageString Source

Container for a string that represents a sequence of raw pixels lacking the alpha component and that is stored upside down

Constructors

forall s . StringCells s => BitmapImageString 

data BitmapStringRGB24A4VR Source

A bitmap represented as a string

This is essentially the format of pixels in the BMP format in which each row is aligned to a four-byte boundry and each row contains a series of RGB pixels.

This type is most efficient for programs interacting heavily with BMP files.

Constructors

BitmapStringRGB24A4VR 

Fields

_bmps_dimensions :: (Int, Int)

Width and height of the bitmap

_bmps_data :: BitmapImageString

Data stored in a string

bytesPerRow :: Int -> Int -> Int -> (Int, Int) Source

Return (rowSize, paddingSize) based on width, bytes per pixel, and alignment