Announcement

Collapse
No announcement yet.

Error: Type 'Bitmap' is not defined

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Error: Type 'Bitmap' is not defined

    I'm getting the above error when using: Using Bmp As New Bitmap in a script.

    I'm using a modified version of the scripts in this post: https://forums.homeseer.com/forum/ho...ol#post1571605

    I'm not really familiar with these OS calls and when I googled it, the issue seems to be .net related. I was running the latest Windows 10 version on this laptop, but decided to upgrade to Win 11.

    I assumed that would fix the problem, but it didn't.

    Can someone please point me in the right direction to fix this?

    I need to be able to generate this png file because my wife wants better control of the RGB bulbs, and from experience, I know it's better to make her happy

    #2
    With a text editor open settings.ini found in the <homeseer root>/config directory.

    Search for:

    ScriptingReferences

    If this is NOT found, add the following directly under [Settings]

    (Copy and paste the following) :

    ScriptingReferences=System.Drawing;System.Drawing.dll

    If it is found, check to see if the above text is already entered as part of the line, if not this needs to be added to the end of the line:

    (Copy and paste the following including the comma) :

    ,System.Drawing;System.Drawing.dll

    There should be no spaces in the ScriptingReferences entry.

    NOTE: Homeseer MUST be shut down when you make changes to settings.ini
    Jon

    Comment


      #3
      That was the answer.

      Thank you Jon, as always, you are the best!

      Comment

      Working...
      X