create from bmp-file text hex-code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
begemot
Forum Newbie
Posts: 2
Joined: Wed Nov 26, 2003 10:32 am
Location: Russia
Contact:

create from bmp-file text hex-code

Post by begemot »

this hex-code result of work programm
hex=000000000000FC0003F88200060D82000407020004038200061FE2000238138007E00EC00C80082011800820210008202100082021000860208010C020C01F0010E012001DA0130007382100030FC1000202010002030100030381000106C300018C660000F83800000000000000000000000000000000000000000000000000
i'm don't know algoritm of this programm, for example this algoritm
for bit
00000000 = 0
00011000 = 18
01111110 = 7e
Image
-hex-code is result of this picture
but how to create this program on PHP, I'm not understand...
P.S.
sorry for my English :)
User avatar
begemot
Forum Newbie
Posts: 2
Joined: Wed Nov 26, 2003 10:32 am
Location: Russia
Contact:

Post by begemot »

also say:
pictures B&W BMP 1bit
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

Here is "toolkit" you need to develop such an application:
[php_man]fopen[/php_man]
[php_man]fread[/php_man]
[php_man]unpack[/php_man]
[php_man]dechex[/php_man]
BMP format description
Post Reply