Oops - I should have checked before replying.
size = abs(bitmap-pitch) * bitmap-rows;
-Original Message-
From: Werner LEMBERG [mailto:w...@gnu.org]
Sent: 25 February 2010 17:08
To: David Bevan
Cc: samaram...@gmail.com; freetype@nongnu.org
Subject: Re: [ft] bitmap buffer length
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
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
The pitch is positive when the bitmap has a ‘down’ flow,
and negative when it has an ‘up’ flow.
rows * pitch
When i multiply a negative pitch i will get a negative number of bytes
right?? or my assumption is wrong?
I would like to read the bitmap-buffer,
for (i=0; i size ; i++)
printf(%.2x