Re: character to bitmap conversion...
- From: Tomi Manninen <tpm prkele tky hut fi>
- To: <gtk-app-devel-list gnome org>
- Subject: Re: character to bitmap conversion...
- Date: Sun, 21 Apr 2002 22:33:35 +0300 (EEST)
Hi,
And thanks for the answer. Yes, you certainly are right. This application
will involve specially designed fonts and only certain sizes will be
useable. However I would like to make it as flexible as possible and leave
the decision whether a certain font/size can be used to the user.
The application I am writing is an implementation of the Hellschreiber
communication system (named after the inventor Rudolph Hell and also
german for "bright writer") that dates back to the twenties. Basically it
is a crude form of telefax. In case you are interested see
<http://www.qsl.net/zl1bpu/FUZZY/Feld.html>.
I already have a working hack that goes like this: I create a small
pixmap and draw the character on it with gdk_draw_text(). Then I make a
GdkImage from it with gdk_image_get(). This image I scan with
gdk_image_get_pixel().
That works but it is _ugly_. Also if I have understood the process
involves transfering stuff to the server side and back (?). That is
something to be avoided I think...
So now I ask, is there a way to do this a bit more cleanly and
efficiently?
/Tomi
On Sun, 21 Apr 2002, TK wrote:
One character has an enless variety of bitmap representations; these
would depend on the font and size. So the first thing you must decide
is what is the consequence of this font/size dependency on the process
you are designing.
TK
At 03:40 4/21/2002 +0300, you wrote:
I am writing an application where I need to do a conversion from a
character to a bitmap (or pixmap). That is, given an (ascii) character, I
need to get a bit(pix)map representing that character so I can manipulate
it pixel by pixel.
Anthony K. Transportation Systems - no HTML mail please.
--
Tomi Manninen Internet: oh2bns sral fi
OH2BNS AX.25: oh2bns oh2rbi fin eu
KP20ME04 Amprnet: oh2bns oh2rbi ampr org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]