Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...