Vcoderz Community
We create websites that have it all, beauty & brains
Lebanon Web Design & Development - Coddict
 

Go Back   Vcoderz Community > Computer Zone > Computers & Information Technologies

Notices

Computers & Information Technologies « Everything related to computers and internet. »

Reply
 
Share Thread Tools Search this Thread
Old 04-12-2008   #11
Kain
Registered Member
 
Kain's Avatar
 
Last Online: 05-14-2023
Join Date: May 2006
Posts: 2,412
Thanks: 5,152
Thanked 2,962 Times in 1,439 Posts
Groans: 47
Groaned at 13 Times in 12 Posts
Default Re: Exclusive: The Bitmap Art Contest On Vcoderz!!!

Quote:
Originally Posted by 454447415244 View Post
Each file in the computer has a header that discribes its type and attributes.
The header of a BMP 24-Bit file is 54 byte long...

Our BMP 24-Bit 15X15 header file will look like this:
42 06 03 00 00 00 00 00 00 36 00 00 00 28 00
00 00 0F 00 00 00 0F 00 00 00 01 00 18 00 00 00
00 00 D0 02 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00

After this header we have the file data (in our case we have the pixel bytes)
Note that a pixel is a 'dot' on the screen...
Since we are dealing with a 24-Bit BMP picture, each pixel is represented by 3 bytes,
each byte is 8 bits long (3x8 = 24), and they are repectively RED, GREEN and BLUE.
Because one BYTE can represent 2 to the power of 8 (equaling 256) different values, one PIXEL can have 256 times 256 times 256 = 2 to the power of 24 = 16.777.216 different values !


#IN BINARY:
-A black pixel will look like:
red byte | green byte | blue byte
0 0 0 0 0 0 0 0 | 0 0 0 0 0 0 0 0 | 0 0 0 0 0 0 0 0
-A white pixel will look like:
red byte | green byte | blue byte
1 1 1 1 1 1 1 1 | 1 1 1 1 1 1 1 1 | 1 1 1 1 1 1 1 1
================================================== ==========
#IN DECIMAL:
-A black pixel will look like:
red byte | green byte | blue byte
0 | 0 | 0
-A white pixel will look like:
red byte | green byte | blue byte
255 | 255 | 255
================================================== ==========
#IN HEXADECIMAL:
-A black pixel will look like:
red byte | green byte | blue byte
00 | 00 | 00
-A white pixel will look like:
red byte | green byte | blue byte
FF | FF | FF

In our case we are interrested just in HEXADECIMAL because hex-editors deals only with hex
and we are going to write a picture using HEX!

After we create a blank white bitmap in 'MsPAINT.EXE' we open it in a hex editor
so it will look like this:

42 06 03 00 00 00 00 00 00 36 00 00 00 28 00
00 00 0F 00 00 00 0F 00 00 00 01 00 18 00 00 00
00 00 D0 02 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
.. .. ..
.. ..
..
.ect.

Since you are beginner :P, don't change any byte in the header of the file!
All our work is on the bytes after the header...
Since each pixel have 3 bytes, if we want to get for example an orange color
we should then change 3 successive bytes to the following ==> FD 77 04 (This is
an orange pixel!), now click: file ==> save , and go check the picture, you should notice
that there is an orange pixel in the white bitmap!
You can change the color or make it more light or heavy by changing the numbers
(shaggel moukhayeltak!)
Note that you should take under consideration that not every successive 3 bytes you change belong
to the same pixel, because maybe the first byte belongs to the pixel before so in this case
changing these 3 bytes will result of changing the color of 2 pixels. So you should
trace each pixel, ya3ne the first, the second and the third byte directly after the header are the
bytes of the first pixel AND NOT the second, the third and the forth...(Got it?)

Now we come to the crucial part...
Like "FD 77 04" will give us the orange color, " 45 21" will give us another color!!!
The differance is that "FD 77 04" is a blablabla in ASCII (in real text) while " 45 21"
is equivalent to "ME!" in ASCII... So we should not use useless bytes, because we cannot write
a usefull text with them and embed it in the bitmap...

We should know that:
A=41 B=42 C=43 D=44 E=45 F=46 G=47 H=48 I=49 J=4A K=4B L=4C M=
N=4E O=4F P=50 Q=51 R=52 S=53 T=54 U=55 V=56 W=57 X=58 Y=59 Z=5A

a=61 b=62 c=63 d=64 e=65 f=66 g=67 h=68 i=69 j=6A k=6B l=6C m=6D
n=6E o=6F p=70 q=71 r=72 s=73 t=74 u=75 v=76 w=77 x=78 y=79 z=7A

0=30 1=31 2=32 3=33 4=34 5=35 6=36 7=37 8=38 9=39

@=40 .=2e !=21 ..................................

There are additional characters you may know...

This is the end of the tutorial i hope you enjoyed...
Now 2arjoune bara3etkon and try to make a meaningful picture from a text!!!
This is what the contest is about...
GOOD LUCK :P

Ma trou7 la b3id ya Icemaker, i'm not talking here about steganography, 2el 2essa hon ktir basita, bas yalle za3alne mennak 2ennak fehem 2el steganography galat, in steganography you don't add a 9th bit (khrabet 2el dene heik, we all know that the system is based on 2 so what the 9 have to do with it lol, we only have 8 bits and in steganography we change the least significant bit yalle houwe 2el bit 2el temen, w fi 2e7timel 2ennou ydal nafsou because houwe bikoun ya 1 ya 0...I think you didn't red the readme file i gave you with the program last time!

ya msha77ar ya aneh shou hetha


__________________
عميت عين لا تراك عليها رقيبا
Kain is offline   Reply With Quote
The Following User Says Thank You to Kain For This Useful Post:
TAREK® (04-13-2008)
Old 04-13-2008   #12
Google

 
Google's Avatar
 
Last Online: 05-30-2013
Join Date: Jan 2008
Posts: 1,788
Thanks: 10,018
Thanked 1,100 Times in 651 Posts
Groans: 1
Groaned at 6 Times in 6 Posts
Default Re: Exclusive: The Bitmap Art Contest On Vcoderz!!!

Ya shabeb, if you didn't installed a HEX EDITOR w ma fta7tou 2el soura yalle 2ana 7etayta akid moush ra7 tefhamou shi, numbers that i talked about bel tutorial hawde moush ba3ba3, you see them all in the hex editor...It is good for someone in the world of computer to know how to use a hex editor!
I think at the end, I'm going to challenge myself in this contest lol
Google is offline   Reply With Quote
The Following 2 Users Say Thank You to Google For This Useful Post:
Kain (04-13-2008), Sogelec (04-13-2008)
Old 04-14-2008   #13
Sogelec
Vcoderz Team
 
Sogelec's Avatar
 
Last Online: 04-23-2014
Join Date: Oct 2006
Posts: 2,263
Thanks: 3,359
Thanked 2,433 Times in 1,226 Posts
Groans: 12
Groaned at 5 Times in 5 Posts
Default Re: Exclusive: The Bitmap Art Contest On Vcoderz!!!

I Knew How To Do IT, after Practicing, It SOO EASY, yala once i have time ill do mine, its not only U Edgar its Me n U bl contest
btw, im not using any special Programs, just a Hex Editor
Regards & thx 4 da Tutorial
Sogelec is offline   Reply With Quote
Old 04-14-2008   #14
Google

 
Google's Avatar
 
Last Online: 05-30-2013
Join Date: Jan 2008
Posts: 1,788
Thanks: 10,018
Thanked 1,100 Times in 651 Posts
Groans: 1
Groaned at 6 Times in 6 Posts
Default Re: Exclusive: The Bitmap Art Contest On Vcoderz!!!

Quote:
Originally Posted by Sweets_HsN® View Post
I Knew How To Do IT, after Practicing, It SOO EASY, yala once i have time ill do mine, its not only U Edgar its Me n U bl contest
btw, im not using any special Programs, just a Hex Editor
Regards & thx 4 da Tutorial
Good work Sweets_HsN® and take your time... I want to see a masterpiece!
You see guys, like our friend said, it's easy
So, where are you competitors ? :P

As we proceed...
Google is offline   Reply With Quote
The Following User Says Thank You to Google For This Useful Post:
Sogelec (04-14-2008)
Reply

  Vcoderz Community > Computer Zone > Computers & Information Technologies

Tags
art, bitmap, contest, exclusive, vcoderz



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:49 PM.


Lebanon web design and development
Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Share