freetype
[Top][All Lists]
Advanced

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

[ft] bitmap buffer length


From: samaram s
Subject: [ft] bitmap buffer length
Date: Thu, 25 Feb 2010 10:05:26 -0500

Hi,

I would like to know how much is the bitmap buffer size.
Actually i am calculating like below said,

    if((bitmap->width/8) < 1)
        size = 2*bitmap->rows ;
    else
        size = ((bitmap->width /8)+1)*bitmap->rows;


But for few characters i am getting it perfect,but for few characters i am getting more bytes which are not actually required.Is there anyway i can get the correct number of bytes for the bitmap->buffer to read.


Thanks,
Sam

reply via email to

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