freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft] Apply 8bit pixmap do 16bit buffer


From: Daniele Maiorana
Subject: [ft] Apply 8bit pixmap do 16bit buffer
Date: Thu, 06 Mar 2008 01:46:20 +0100
User-agent: Thunderbird 2.0.0.12 (Windows/20080213)

Hi ML!!

I have to apply the 8bit pixmap i have inside

"face->glyph->bitmap"

after the call:

FT_Load_Char( face, 'T', FT_LOAD_RENDER );

on my 16bit backbuffer, in order to draw (for example) a blue 'T' character...

Do you have some clue in order to accomplish that?

I saw some examples on the net; i should combine with OR the pixmap and the backbuffer, like that:

backbuffer[x][y] |= face->glyph->bitmap.buffer[y * face->glyph->bitmap.width + x]

But i wonder how should i combine my "BLUE" component?
And btw, my backbuffer is in 16bit format (565) while the FreeType pixmap should be in 8bit format.....

I'm really stucked :(


I'm stucked!





reply via email to

[Prev in Thread] Current Thread [Next in Thread]