GetPixel function question

Kowboy87

Newcomer
Joined
Aug 26, 2003
According to the MSDN Refence Library I should be able to use GetPixel when attempting to return the color of a particular pixel in a specifiec bitmap.

Unfortunately I get an error saying a ";" is expected when I run the following line ...

var imageObj = new Bitmap(strMaster));

Can anyone help me with what I am doing wrong other than using JScript for something I should be using C# to accomplish? Trust me, I'd prefer to use C# but the automated test harness we're using only accepts JScript.
 

Kowboy87

Newcomer
Joined
Aug 26, 2003
Sorry about that, I cut and pasted the wrong line. That one was tossing a syntax error I figured out as having the issue you suggested. When I remove the extra parentheses is when I get the error stating Bitmap is not defined. Does anyone know how to declare the Bitmap object or class in JScript?

Thanks.
 
Top Bottom