I Need help to create an image preview from A Riped Binary File in C#.
The File Having the Following information in first 48 byte.
nSignature; // 0x1234 (DATA in 4-byte )
nXDPI; // Image XDPI (DATA in 4-byte )
nYDPI; // Image YDPI (DATA in 4-byte )
nBytesPerLine; //1 Line Data Length /Byte (DATA in 4-byte )
nHeight; //Image Height (DATA in 4-byte )
nWidth; //Image Width (DATA in 4-byte )
nPaperWidth; //No Use. 25: CaoXueShi (DATA in 4-byte )
nColors; //1=monochrome 4: CMYK (DATA in 4-byte )
nBits; //No Use for most printer //Techwin: PassNum (DATA in 4-byte )
nReserved[3]; //0: Pass Number, 1: vsdMode //DWORD VsdMode;(DATA in 12-byte )
after the 48 byte information the color information stored.
First line
KKKKKKKKKKKKKKKKKKKK
CCCCCCCCCCCCCCCCCCCC
MMMMMMMMMMMM
YYYYYYYYYYYYYYYYYYYYYY
Second line
KKKKKKKKKKKKKKKKKKKK
CCCCCCCCCCCCCCCCCCCC
MMMMMMMMMMMM
YYYYYYYYYYYYYYYYYYYYYY ….
the nBytesPerLine define the number of byte in each line that is how many bytes for k ,c,m and y.
and the nHeight define the numbers of line of color information.
now using the above information i want to create an image preview in C#
You may download a binary file from here Download
Please Help
Hi Every One Finally solve my Problem
First OF All Create A Class File RGB
Now Create A Window Form And Add picturbox,label,Filedailog and A Button
Reference