Get pixel data

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Get pixel data

Sandeep Rattu -RMSINDIA
Hi
PLease Explain me getpixel data in BMP reader.
If i use it in C#.It is giving me error
for (int i = 0; i < w; i++)

{

int b0 = (((int)(rawData[k++])) & mask);

int b1 = (((int)(rawData[k++])) & mask) << 8;

int b2 = (((int)(rawData[k++])) & mask) << 16;

intData[j] =0xff000000 b2 | b1 | b0;              //error can not implicitly convert long to int.

j++;

}

Please tell me how to use.



Thanks & Regards,

Sandeep
Recorders and Medicare Systems Pvt. Ltd
181/5, Phase - 1, Ind. Area
CHANDIGARH - 160 002 INDIA
+91-9872030116
other e-mail: [hidden email]  

URL: http://www.rmsindia.com | http://www.rmssecurity.org | http://www.rmssecurity.net