Hi Tom,

thanks for you answer. I doubt that the method you mentioned would work.
Because how would the cell phone know about how wide or high the image would
be? I mean there must be some information in the gif file other than the
color values of all the pixels in a row ...

I know that the PHP methods that do the job are unpack() and implode()

Is there a way to get the binary content of the gif file as it is?

Thanks for you help

Mcihael

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Auftrag von Thomas
Higgins
Gesendet: Donnerstag, 12. Juni 2003 17:59
An: '[EMAIL PROTECTED]'
Betreff: RE: <lingo-l> convert a gif file to HEX values


> Does anyone have an ideo how to convert a gif file into a series of
> hex-values, as needed when sending SMS picture messages?

I'm not sure exactly what SMS picture messages require, but my attempt to
answer your question is this:

- walk the image pixel by pixel, pulling each pixel's color using
image.getPixel(x,y)
- convert that pixel's rgb value to a hex value using rgbColor.hexString()

Store your data in a list using a repeat loop. Does that help?

Cheers,
Tom Higgins
Product Specialist - Director Team
Macromedia
[EMAIL PROTECTED]

...
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is
for learning and helping with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to