[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] bitmap buffer length
From: |
Werner LEMBERG |
Subject: |
Re: [ft] bitmap buffer length |
Date: |
Thu, 25 Feb 2010 16:24:41 +0100 (CET) |
> 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.
The size of the bitmap buffer in FT_Bitmap is as documented:
rows * pitch
Werner