|
From: | Werner LEMBERG |
Subject: | Re: [ft] bitmap buffer length |
Date: | Thu, 25 Feb 2010 18:07:33 +0100 (CET) |
> size = ((bitmap->width + 7) / 8) * bitmap->rows; > > // ((bitmap->width + 7) / 8) is the number of bytes for bitmap->width bits This is not necessarily correct. Especially on Windows, the pitch might be a multiple of 4. I suggest to always use the `pitch' field. Werner
[Prev in Thread] | Current Thread | [Next in Thread] |