what is wrong with this code?
typedef unsigned long DWORD;
typedef unsigned short WORD;
typedef struct {
int Signature;
DWORD Size;
DWORD Reserved;
DWORD BitsOffset;
} BITMAP_FILEHEADER;
typedef struct {
DWORD HeaderSize;
DWORD Width;
DWORD Height;
WORD Planes...
Thank you Borek for this piece of code.i will go to implement it to what i want.and don't worry i will not bombard you with questions until i read it (the codes)carefully and check my courses stuff.but be ready !
in page http://en.wikipedia.org/wiki/BMP_file_format" at the bottom ther is a table which draws the contents of the a 2x2 bmp pictures
the are in 0x :42 4D 46 00 00 00 00 00 36 00 ...00 FF 00 00 00
so they are separate numbers stored in bytes,and if i (for example) want to modify the LSB of...
I know the internal structure of .bmp and i know that it is made of headers which contains information about the .bmp like width,height ,bitdepth.
but my problem is that how to open it into my program .i have seen lots of codes on the internet that are named for example "bitmaploader" or thing...
Hello every body :
i am very new to programming ,i am trying to write a programme that will work on the LSB of each byte in a 24 bit picture.
now my question is how to treat a .bmp file ,i mean can i consider it as an array of integers with leth (for example)800x600.
and start to changing the...
These two functions are used for empadding and extracting the bits from a byte ,they are used for steganography with LSB method in 24-bit .bmp pics,i just wanted to kmow that how they work ,i mean with some examples.can anyone help?:biggrin:
C# vs c !
Hello every body!
can anyone explain what this c# code does or give a C equalivent?
public static void Replace(ref byte b, int pos,
byte value)
{
b = (byte) (value == 1 ? b | (1 << pos)
: b & ~(1 << pos));
}
public static byte...
a 24 bit pticture uses 3 bytes for a pixel like this(11111111,11111111,11111111) but a 8 bit picture uses a byte for showing a pixel like this (11111111) the question is that in 24 bit pics first 8 bits are (?) for blue and next 8 bits for green and finally for red.
how the RGB is for 8bit...
LSB method has a simple explanation but when we want to implement it to a BMP image with C it doesen't become as easy as you said i don't know how to start and how should i start coding i have no starting point and that's terrible!
can anyone give more help please?:blushing: