Re: [LIBART] Copying grayscale pixmap
- From: "Walker." <walkonmoon 163 net>
- To: <libart gnome org>
- Subject: Re: [LIBART] Copying grayscale pixmap
- Date: Tue, 5 Feb 2002 09:37:08 +0800
hello Lars,
I think you can write your own callback function and then call freetype's api : grays_convert_glyph(RAS_VAR_ params);
Walker.
----- Original Message -----
From: <lrclause+libart cs uiuc edu>
To: <libart gnome org>
Sent: Tuesday, February 05, 2002 2:26 AM
Subject: [LIBART] Copying grayscale pixmap
[Note: Forgot the +libart on my email when I sent this first. List
operators, please disregard my earlier message.]
Hi!
We're using LibArt for the antialiasing in Dia. Now I'm in the middle of
adding FreeType support. FreeType does antialiasing itself on its
characters, so I get a pixmap of grayscale (8-bit) pixels that I need to
copy onto an rgb_buffer with transparency. Essentially it's an alpha-mask
of a single color block. With GDK fonts we just use art_rgb_bitmap_affine,
but that takes a bitmap of 1-bit pixels. Is there something I've missed,
or do I really have to transform the 8-bit pixmap by hand to a 32-bit RGBA
bitmap?
Thanks,
-Lars
--
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hårdgrim of Numenor
"I do not agree with a word that you say, but I |----------------------------
will defend to the death your right to say it." | Where are we going, and
--Evelyn Beatrice Hall paraphrasing Voltaire | what's with the handbasket?
_______________________________________________
Libart mailing list
Libart gnome org
http://mail.gnome.org/mailman/listinfo/libart
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]