|
From: | Leonard Rosenthol |
Subject: | Re: [Freetype] FreeType and Carbon PixMaps |
Date: | Thu, 13 Mar 2003 12:11:00 -0500 |
At 1:16 PM +0000 3/13/03, James Turnbull wrote:
I am attempting to convert a Freetype FT_Bitmap into a Carbon (Mac OS) Pixmap. // Setup pixmap fieldssrc_pm->baseAddr = face->glyph->bitmap.buffer; src_pm->rowBytes = face->glyph->bitmap.pitch; ... // Copy onto the destination CopyBits(src_pm, dst_bm, &src_rect, &dst_rect, srcCopy, NULL);
That won't work - an FT_Bitmap isn't 100% compatible with a Mac OS Pixmap. You will have to pixel by pixel copying...It's not a big deal...
Leonard -- --------------------------------------------------------------------------- Leonard Rosenthol <mailto:address@hidden> <http://www.lazerware.com>
[Prev in Thread] | Current Thread | [Next in Thread] |