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" [Broken] 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...
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:
after doing some searching i realized that the LSB method is very suitable for my project the problem is that i coulden't find any complete algorithm for this.
i was wondering does anybody knows the complete algorithm of LSB method?
i am taking a c course in university and the in the third section of class professor announced the project of the term every body got shocked .
i have 3 about 30 days to find the algorithm and general solution but i don't know how to start?
can you help me?
Up from Earth's Centre through the Seventh Gate,
I rose, and on the Throne of Saturn sate,
And many Knots unravel'd by the Road,
But not the Master-Knot of Human Fate.
The blasphemy of somebody like me is not easy and exorbitant,
There isn't any stronger faith than my faith,
If...
Homework Statement
1- write an algorithm to find out whether an input is a prime number
or not.
2-write aa program to compute square root by Newton method
3-write an algorithm to show an input is perfect or not.
4-
Homework Equations
The Attempt at a Solution