freetype2-0.2.0: Haskell bindings for FreeType 2 library

Safe HaskellNone
LanguageHaskell98

FreeType.Support.Bitmap

Contents

Description

Please refer to the Support API > Bitmap Handling chapter of the reference.

Internal: FreeType.Support.Bitmap.Internal.

Synopsis

FT_Bitmap_Init

ft_Bitmap_Init Source #

Arguments

:: IO (Ptr FT_Bitmap)

bitmap

Newly created FT_Bitmap is allocated using malloc and thus must be freed manually.

ft_Bitmap_With Source #

Arguments

:: FT_Library

library

-> (Ptr FT_Bitmap -> IO a) 
-> IO a 

bracket over ft_Outline_Init and ft_Bitmap_Done.

The provided Ptr FT_Bitmap should not be used after this function terminates.

FT_Bitmap_Copy

ft_Bitmap_Copy Source #

Arguments

:: FT_Library

library

-> Ptr FT_Bitmap

source

-> Ptr FT_Bitmap

target

-> IO () 

FT_Bitmap_Embolden

ft_Bitmap_Embolden Source #

Arguments

:: FT_Library

library

-> Ptr FT_Bitmap

bitmap

-> FT_Pos

xStrength

-> FT_Pos

yStrength

-> IO () 

FT_Bitmap_Convert

ft_Bitmap_Convert Source #

Arguments

:: FT_Library

library

-> Ptr FT_Bitmap

source

-> Ptr FT_Bitmap

target

-> FT_Int

alignment

-> IO () 

FT_Bitmap_Blend

ft_Bitmap_Blend Source #

Arguments

:: FT_Library

library

-> Ptr FT_Bitmap

source

-> FT_Vector

source_offset

-> Ptr FT_Bitmap

target

-> FT_Vector

target_offset

-> FT_Color

color

-> IO FT_Vector

target_offset

FT_GlyphSlot_Own_Bitmap

FT_Bitmap_Done

ft_Bitmap_Done Source #

Arguments

:: FT_Library

library

-> Ptr FT_Bitmap

bitmap

-> IO () 

Additionally frees the passed pointer.