Searching \ for '[EE]: Bitmap to graphic converter.' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=bitmap+graphic+converter
Search entire site for: 'Bitmap to graphic converter.'.

Exact match. Not showing close matches.
PICList Thread
'[EE]: Bitmap to graphic converter.'
2002\03\14@054433 by Quentin

flavicon
face
I have looked at the links at piclist.com and could not find what I
need.
I want to take a  bitmap picture, specify HxW and generate a look up
table of hex (or bin) values.

Currently I want to show large numbers on a graphics LCD. So I want to
take the numbers from a certain font, get the size (in pixels) and
generate the lookup table from it (for a PIC, btw.).

Any links/ideas?

Thanks
Quentin

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\03\14@062019 by Dave Dilatush

picon face
Quentin wrote...

>I have looked at the links at piclist.com and could not find what I
>need.
>I want to take a  bitmap picture, specify HxW and generate a look up
>table of hex (or bin) values.
>
>Currently I want to show large numbers on a graphics LCD. So I want to
>take the numbers from a certain font, get the size (in pixels) and
>generate the lookup table from it (for a PIC, btw.).
>
>Any links/ideas?

I had a similar problem, though a completely different application.

What I did was use Paintshop Pro to capture a screen image at the
resolution I wanted, then copied and pasted the particular feature I was
after to a new image which I then saved as a Windows .BMP file.  I could
have used any other format, but .BMP was the one I had the clearest file
format information on.

Then I wrote and ran a short program to read the .BMP file and output a
hex ASCII file.  I didn't save the program after I'd got done with it
(it was that short and easy) but the only complication I recall running
into was that @#$%$#%&$ Windoze .BMP files store images "upside down"
and I had to turn them rightside up.

Figures...

Dave

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\03\14@073949 by Quentin

flavicon
face
Dave Dilatush wrote:

> I had a similar problem, though a completely different application.
>
> What I did was use Paintshop Pro to capture a screen image at the
> resolution I wanted, then copied and pasted the particular feature I was
> after to a new image which I then saved as a Windows .BMP file.  I could
> have used any other format, but .BMP was the one I had the clearest file
> format information on.
>
That I do...
> Then I wrote and ran a short program to read the .BMP file and output a
> hex ASCII file.  I didn't save the program after I'd got done with it
> (it was that short and easy) but the only complication I recall running
> into was that @#$%$#%&$ Windoze .BMP files store images "upside down"
> and I had to turn them rightside up.
That I want... (Although the right side up. :) ) Anybody got something?
Or why don't you rewrite it and post it on the piclist.com page (And get
all the glory and credit and I get my program, hehe).

Quentin

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\03\14@084704 by sirish

flavicon
face
On Thursday 14 March 2002 07:36, you wrote:
>
> That I want... (Although the right side up. :) ) Anybody got something?
> Or why don't you rewrite it and post it on the piclist.com page (And get
> all the glory and credit and I get my program, hehe).

       if u are not particular about file formats, try using the PPM format, it is
much more straight forward, and is right side up ;-)

       i have used them for a similar application ( LCD image lodaing ), with a lot
more comfort than BMP formats.

cheers
Sirish
DeepRoot Linux Pvt. Ltd.

>
> Quentin

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\03\14@141337 by Francisco Ares

flavicon
face
I have two programs that a friend sent me for doing this.  I have never
used it (he took too long to send them ;-), so I don't know how good it
is, but if you (or anyone) want to test it, I can send it to your
personal e-mail, of maybe try to post it to the list (80k zip file)

Francisco


Quentin wrote:

{Quote hidden}

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\03\14@143640 by Barry Gershenfeld

picon face
>What I did was use Paintshop Pro to capture a screen image at the
>resolution I wanted, then copied and pasted the particular feature I was
>after to a new image which I then saved as a Windows .BMP file.

I also did a similar thing...
Paint Shop also has a format called .RAW --  it doesn't get any
simpler than that.

As a matter of fact now I remember that GNU (Linux, Unix etc) has
a program called xxd that will take your binary file and change
it to a C array !

Barry

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\03\14@162234 by Jon Baker

flavicon
face
I think this is what you are looking for:

http://www.geocities.com/jrgert/SourceCode/

Jon Baker

> I want to take a  bitmap picture, specify HxW and generate a look up
> table of hex (or bin) values.

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\03\14@170322 by Dave Dilatush

picon face
Quentin wrote...

>Or why don't you rewrite it and post it on the piclist.com page (And get
>all the glory and credit and I get my program, hehe).

Well, since Jon Baker's post of a few minutes ago I'm a bit late for the
glory part; his looks like a really good program.

Besides, all I'd get is derision anyway because if I posted the program
then people would want to see the source code, and then I'd have to
admit publicly that I'm still using Microsoft Quickbasic.

Dave

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\03\14@170643 by Thomas McGahee

flavicon
face
One method of generating LARGE bitmapped numbers is to GENERATE them
on-the-fly instead of trying to have them actually memorized in a table.

For example, suppose you want to display LARGE 7 segment style numbers:

Let's assume you want a 4 digit display with floating decimal point.

Set aside storage space for the 4 digits.
Each byte can hold abcdefg plus dp segment data.

You begin by specifying the abcdefg code for each digit from 0 to 9.
That will occupy ten byte locations in a lookup table. The individual
bits within each byte indicate which segments are used to make up
the displayed digit.

The decimal point is OR'd in to the appropriate storage byte.

Each segment is either a horizontal or vertical bar. Each horizontal
segment is the same except for its RELATIVE position. The same
applies to the vertical bars.

A digit is mapped onto the bitmap area by specifying an x offset
that determines its relative position on the screen. The Y offset can
be fixed in most cases, but if you make it variable then the
software can handle multi-line digit displays as well.

***

Initially CLEAR the "line" area that is going to be generated.

Assume you have 4 digits called digit1-digit4. You begin by getting
the binary value in digit1 into W. You use the SEGMENT table to decode
the value into segment bits, and store the result back into digit1.
Do the same for all four digits.

Determine which digit gets the decimal point, and then OR the dp into
the appropriate digit holder.

Set FSR to point to digit1.
Load the xy offset for the first digit into xoffset and yoffset.
CALL the subroutine to convert segment bits into proper BARS,
using xoffset and yoffset to generate proper location for
each generated pixel.

Place each generated pixel onto bitmapped display at proper location.

Increment FSR and do next digit.
Continue until all digits have been processed.

***

Note that the program section that generates the generic BARS can make
the bars as thick as you want.

I prefer to make my bar segments flush with one another within a given
digit. I find that they are more readable that way.

***

The method outlined above trades off a little program storage for
a tremendous savings in RAM storage.

With a little additional programming you can actually scale the digits
to different sizes, which is often useful.

Fr. Thomas McGahee








{Original Message removed}

2002\03\14@171935 by M. Adam Davis

flavicon
face
Then I'd have to suggest you look at PHP, which would lead to a heated
list discussion on rapid application development tools, platforms,
cross-compatability, and in the end we'd lose dozens of members in the
crossfire, you'd still be using quickbasic, and everyone will be more
firmly entrenched in their opinions than before.

So it's a good thing you didn't have to admit that...  ;-)

-Adam

Dave Dilatush wrote:

{Quote hidden}

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\03\14@184003 by jamesnewton

face picon face
source= http://www.piclist.com/postbot.asp?id=piclist\2002\03\14\141337a

If your friend doesn't mind, send me that bit map to table program and I'll
post it to the web site.

---
James Newton: PICList.com webmaster, former Admin #3
spam_OUTjamesnewtonTakeThisOuTspampiclist.com  1-619-652-0593 phone
http://www.piclist.com/member/JMN-EFP-786
PIC/PICList FAQ: http://www.piclist.com

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\03\14@190315 by Dave Dilatush

picon face
Adam wrote...

>Then I'd have to suggest you look at PHP, which would lead to a heated
>list discussion on rapid application development tools, platforms,
>cross-compatability, and in the end we'd lose dozens of members in the
>crossfire, you'd still be using quickbasic, and everyone will be more
>firmly entrenched in their opinions than before.
>
>So it's a good thing you didn't have to admit that...  ;-)

What's PHP?

I once worked with a whizbang C++ guru who always referred to Microsoft
Visual Basic as PFP ("Programming For P*ssies") but I guess that's not
the same thing???

All these languages.  It's so confusing...

Dave

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\03\14@194137 by Dincer Aydin
picon face
Hello Quentin,

Thursday, March 14, 2002, 12:41:40 PM, you wrote:

Q> I have looked at the links at piclist.com and could not find what I
Q> need.
Q> I want to take a  bitmap picture, specify HxW and generate a look up
Q> table of hex (or bin) values.

Q> Currently I want to show large numbers on a graphics LCD. So I want to
Q> take the numbers from a certain font, get the size (in pixels) and
Q> generate the lookup table from it (for a PIC, btw.).

Q> Any links/ideas?

You do not mention what controller your graphic LCD uses. What
software you use depends on your controller, since different
controllers have different display layouts. Some are similar to the
layout of a bitmap image and some are not. If yours happen to be a
KS108 or HD61202, I have the necessary software at:
http://www.geocities.com/dinceraydin/lcd/gfxfin.htm

--
Best regards,
Dincer                            .....dinceraydinKILLspamspam@spam@softhome.net

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\03\14@211849 by M. Adam Davis

flavicon
face
"PHP  is a widely-used general-purpose scripting language that is
especially suited for Web development and can be embedded into HTML."

http://www.php.net/

It's a scripting language I use now in place of the simple vb programs I
used to write for specific (often one time) uses.  It's especially
convenient for accessing and processing DB info - I can use my access
and MySQL databases with PHP very easily.

I haven't yet needed to deal with binary files, though.  It isn't
compiled, and is cross platform with full internet and DB support across
all platforms it's on.  Right now GTK is being ported to it so you can
create GUIs for it that will also be cross platform.

It has the ability to do OO, but is primarily a procedural language, and
its syntax is very similar to C, so I was able to pick it up much more
easily than java.

I haven't yet had to deal with hardware level access, though.  I
understand there are com and parallel port libraries for it, but there's
one area which is likely not cross platform.

But I have several 'tools' in my programming tool box, I just find this
one meets 75% of my needs, and is much easier to develop and debug than
my other languages.

-Adam

Dave Dilatush wrote:

{Quote hidden}

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\03\14@222133 by Dave Dilatush

picon face
Adam wrote...

>"PHP  is a widely-used general-purpose scripting language that is
>especially suited for Web development and can be embedded into HTML."
>
>http://www.php.net/

OK, thanks; looks interesting, I'll give it a look-see when I get the
chance.

DD

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\03\15@022935 by Quentin

flavicon
face
Jon Baker wrote:
>
> I think this is what you are looking for:
>
> http://www.geocities.com/jrgert/SourceCode/
I had a look at that one. Just not enough lines (only 32). It would be
nice to set the area yourself (I want 46 lines in this case).

Quentin

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2002\03\15@060511 by michael brown

flavicon
face
> As a matter of fact now I remember that GNU (Linux, Unix etc) has
> a program called xxd that will take your binary file and change
> it to a C array !

Aw heck, and I just wrote a program yesterday to do this.  It converts a
240*128 monochrome bitmap to hex initialization values for a giant character
array.  It only runs on Linux, but if anyone wants it, let me know.

michael brown

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2002\03\15@061105 by Bond, Peter

flavicon
face
> Aw heck, and I just wrote a program yesterday to do this.  It
> converts a
> 240*128 monochrome bitmap to hex initialization values for a
> giant character
> array.  It only runs on Linux, but if anyone wants it, let me know.

...and probably Cygwin?

Peter
This email, its content and any attachments is PRIVATE AND CONFIDENTIAL to
TANDBERG Television. If received in error please notify the sender and
destroy the original message and attachments.

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


More... (looser matching)
- Last day of these posts
- In 2002 , 2003 only
- Today
- New search...