Re: How to read .tiff, .bmp, .png?

From: [at]} <danforth{>
Date: Thu, 05 Feb 2004 17:31:01 -0500

----boundary-LibPST-iamunique-1708161508_-_-
Content-type: text/plain

skulski{([at]})nowhere.xy
> Hi:
>
> I need to read camera images into BB. The format is any of the
> following: tiff, Windows bmp, or png. Is there a module around
> that can accomplish this?
>
> Note, I do not need to just show the image. I need to read the
> numbers byte by byte into the pascal array and then I need to
> manipulate the numbers. Thus, I need to extract the original numbers
> from the above graphics formats. Since I have a choice which format
> to use, I need to deal with just one of the above formats.
>
> Alternatively, a description of the internal structure of those formats
> would be helpful such that I can decipher them myself.
>
> Thank you,

Wojtek,
I have a program, that I wrote from scratch, that will read bitmaps. It
works but I am not in a position right now to support it if anything
goes wrong. It uses two modules, VisualBitmaps, and VisualPictures,
that rely on WinApi. Its not a trivial piece of code. It was written
for a company doing internet image compression.

I'd be more interested in seeing what others (or OuS) has to offer.
-Doug

--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.



----boundary-LibPST-iamunique-1708161508_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaG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jb20g


----boundary-LibPST-iamunique-1708161508_-_---
Received on Thu Feb 05 2004 - 23:31:01 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:28:56 UTC