Kowboy87 Posted August 27, 2003 Posted August 27, 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. Quote
*Experts* mutant Posted August 27, 2003 *Experts* Posted August 27, 2003 You have one too many parenthesis in your code on the right by strMaster. Quote
Kowboy87 Posted August 27, 2003 Author Posted August 27, 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.