GetPixel function question

Kowboy87

Member
Joined
Aug 26, 2003
Messages
5
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, Id prefer to use C# but the automated test harness were using only accepts JScript.
 
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.
 
Back
Top