<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>DisplayFusion RSS: Function refers to Bitmap not working</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04</link>
<description>DisplayFusion RSS: Function refers to Bitmap not working</description>
<lastBuildDate>Sat, 20 Jun 2026 05:36:23 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04</generator>
<item>
<title>RE: Function refers to Bitmap not working</title>
<link>https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#16</link>
<pubDate>Tue, 16 Jun 2020 00:13:22 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#16</guid>
<category>DisplayFusion</category>
<description><![CDATA[Glad to hear it, thanks for the help tracking this down!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Glad to hear it, thanks for the help tracking this down!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function refers to Bitmap not working</title>
<link>https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#15</link>
<pubDate>Mon, 15 Jun 2020 23:11:30 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#15</guid>
<category>DisplayFusion</category>
<description><![CDATA[I can confirm the latest beta has fixed this issue for me.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I can confirm the latest beta has fixed this issue for me.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function refers to Bitmap not working</title>
<link>https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#14</link>
<pubDate>Fri, 12 Jun 2020 16:59:02 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#14</guid>
<category>DisplayFusion</category>
<description><![CDATA[Good find! We were able to reproduce this here now as well, and we should be able to fix it up for the next beta.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Good find! We were able to reproduce this here now as well, and we should be able to fix it up for the next beta.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function refers to Bitmap not working</title>
<link>https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#13</link>
<pubDate>Fri, 12 Jun 2020 05:22:17 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#13</guid>
<category>DisplayFusion</category>
<description><![CDATA[After trying serveral things out, I finally tracked down the issue.
It seems that when getting asking for common assembiles, Windows prioritized the ones bundled with Powershell 7.0 (maybe versions 6.x as well) instead of the ones included by .Net framework itself. But by design they do not alwa...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
After trying serveral things out, I finally tracked down the issue. <br/>
<br/>
It seems that when getting asking for common assembiles, Windows prioritized the ones bundled with Powershell 7.0 (maybe versions 6.x as well) instead of the ones included by .Net framework itself. But by design they do not always behave in the same way <a href="https://github.com/dotnet/runtime/issues/29823" target="_blank" rel="nofollow"><b>https://github.com/dotnet/runtime/issues/29823</b></a>, particularly with WinForms. There are also several open issues related to the TypeHandler in net core 3.x which may be related. <br/>
<br/>
Maybe a possible fix is fiddling around with the TargetFramework attribute and/or the assembly conversions to force referencing the correct assemblies. <br/>
<br/>
However, the quickest way to solve the issue is to simply uninstall Powershell 7.0.x (6.x), this allows both scripts to compile.<br/>
<br/>
The following issues were also resolved:<br/>
- Slow Settings UI<br/>
- Visual Basic scripting being completely broken<br/>
<br/>
As a sidenote, I tried the latest 7.0.2 release but the issue persisted. However, after upgrading to 7.1 preview, which is based on .Net 5 (both include fixes regarding references and the TypeHandler), everything kept working ok.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function refers to Bitmap not working</title>
<link>https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#12</link>
<pubDate>Thu, 11 Jun 2020 23:34:44 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#12</guid>
<category>DisplayFusion</category>
<description><![CDATA[My function is attached.
I downloaded the Gaussian Lock function and hit Verify Code. This was the result:
44: The type name 'Bitmap' could not be found. This type has been forwarded to assembly 'System.Drawing.Common, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. Consider...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
My function is attached.<br/>
<br/>
I downloaded the Gaussian Lock function and hit Verify Code. This was the result:<br/>
<br/>
44: The type name 'Bitmap' could not be found. This type has been forwarded to assembly 'System.Drawing.Common, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. Consider adding a reference to that assembly.<br/>
67: The type name 'Bitmap' could not be found. This type has been forwarded to assembly 'System.Drawing.Common, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. Consider adding a reference to that assembly.<br/>
188: The type name 'Bitmap' could not be found. This type has been forwarded to assembly 'System.Drawing.Common, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. Consider adding a reference to that assembly.<br/>
188: The type name 'Bitmap' could not be found. This type has been forwarded to assembly 'System.Drawing.Common, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. Consider adding a reference to that assembly.<br/>
0: Error: Compile failed.<br/>
[System.Exception]
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function refers to Bitmap not working</title>
<link>https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#11</link>
<pubDate>Thu, 11 Jun 2020 23:31:17 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#11</guid>
<category>DisplayFusion</category>
<description><![CDATA[Yes, I have 4.8.03752 installed as well as .Net Core 3.1.300 and VS 2019.
Note this code has been working fine for me until an update.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Yes, I have 4.8.03752 installed as well as .Net Core 3.1.300 and VS 2019.<br/>
<br/>
Note this code has been working fine for me until an update.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function refers to Bitmap not working</title>
<link>https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#10</link>
<pubDate>Thu, 11 Jun 2020 20:21:29 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#10</guid>
<category>DisplayFusion</category>
<description><![CDATA[I can't seem to reproduce this here, even with .NET Core 3.1 installed. Do you guys also have .NET 4.6.2 or higher installed?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I can't seem to reproduce this here, even with .NET Core 3.1 installed. Do you guys also have .NET 4.6.2 or higher installed?
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function refers to Bitmap not working</title>
<link>https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#9</link>
<pubDate>Thu, 11 Jun 2020 05:55:18 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#9</guid>
<category>DisplayFusion</category>
<description><![CDATA[I'm facing an issue which seems similar when running the script from
https://www.displayfusion.com/ScriptedFunctions/View/?ID=dd88a3f2-f17d-4cff-9db0-a03a8f9a2064
However, in this case, the error is:
Code
Copy
Select All
: The type name 'Point' could not be found. This type has been forward...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I'm facing an issue which seems similar when running the script from <br/>
<a href="https://www.displayfusion.com/ScriptedFunctions/View/?ID=dd88a3f2-f17d-4cff-9db0-a03a8f9a2064" target="_blank" rel="nofollow"><b>https://www.displayfusion.com/ScriptedFunctions/View/?ID=dd88a3f2-f17d-4cff-9db0-a03a8f9a2064</b></a><br/>
<br/>
However, in this case, the error is:<br/>
<div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019ee387bab8745d8661c869e499c62c" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019ee387bab8745d8661c869e499c62cJs'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019ee387bab8745d8661c869e499c62cJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">: The type name 'Point' could not be found. This type has been forwarded to assembly 'System.Drawing.Primitives, Version=4.2.1.0, Culture=neutral, ... Consider adding a reference to that assembly.
0: Error: Compile failed.
[System.Exception]</pre><textarea id="code019ee387bab8745d8661c869e499c62c" name="code019ee387bab8745d8661c869e499c62c" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function refers to Bitmap not working</title>
<link>https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#8</link>
<pubDate>Wed, 10 Jun 2020 18:21:45 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#8</guid>
<category>DisplayFusion</category>
<description><![CDATA[Can you post the exported scripted function that is failing to verify for you? You can do this by selecting the script in Functions list and clicking the "Scripted Functions" button then "Export". Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Can you post the exported scripted function that is failing to verify for you? You can do this by selecting the script in Functions list and clicking the "Scripted Functions" button then "Export". Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function refers to Bitmap not working</title>
<link>https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#7</link>
<pubDate>Wed, 10 Jun 2020 05:04:26 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#7</guid>
<category>DisplayFusion</category>
<description><![CDATA[If you just download the "Gaussian Lock" scripted function and click "Verify Code" does it fail for you? Doing that seems to be working fine in testing, can you confirm that it works or doesn't work for you? Can you post the exact message you're receiving as well if the error continues? Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
If you just download the "Gaussian Lock" scripted function and click "Verify Code" does it fail for you? Doing that seems to be working fine in testing, can you confirm that it works or doesn't work for you? Can you post the exact message you're receiving as well if the error continues? Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function refers to Bitmap not working</title>
<link>https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#6</link>
<pubDate>Tue, 09 Jun 2020 20:49:31 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#6</guid>
<category>DisplayFusion</category>
<description><![CDATA[It was supposed to be fixed in B16! I'll re-open the ticket and we'll have another look at it.
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
It was supposed to be fixed in B16! I'll re-open the ticket and we'll have another look at it.<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function refers to Bitmap not working</title>
<link>https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#5</link>
<pubDate>Tue, 09 Jun 2020 20:09:32 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#5</guid>
<category>DisplayFusion</category>
<description><![CDATA[I hoped Beta 16 would resolve this issue, but I still see the same error on trying to Verify Code?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I hoped Beta 16 would resolve this issue, but I still see the same error on trying to Verify Code?
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function refers to Bitmap not working</title>
<link>https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#4</link>
<pubDate>Wed, 27 May 2020 23:48:50 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[The Scripted Function Gaussian Lock is the one that is failing.
(Note: My version is two functions, one calls the other and then locks the screen, so I can update the bitmap on a idle time schedule just before the computer locks due to idle time.)
References:
System.Core.dll|System.Data.dll|Sy...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
The Scripted Function Gaussian Lock is the one that is failing.<br/>
<br/>
(Note: My version is two functions, one calls the other and then locks the screen, so I can update the bitmap on a idle time schedule just before the computer locks due to idle time.)<br/>
<br/>
References:<br/>
<br/>
System.Core.dll|System.Data.dll|System.dll|System.Drawing.dll|System.Management.dll|System.Web.dll|System.Windows.Forms.dll|System.Xml.dll
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function refers to Bitmap not working</title>
<link>https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#3</link>
<pubDate>Wed, 27 May 2020 15:47:29 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Would you be able to post the script you're having issues with, along with your references list? Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Would you be able to post the script you're having issues with, along with your references list? Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Function refers to Bitmap not working</title>
<link>https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#2</link>
<pubDate>Tue, 26 May 2020 21:22:17 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[I think there were some backend changes to the scripting but I'm not 100% sure on what they all entailed. I will pass this over to our devs to get some input here.
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I think there were some backend changes to the scripting but I'm not 100% sure on what they all entailed. I will pass this over to our devs to get some input here.<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>Function refers to Bitmap not working</title>
<link>https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04</link>
<pubDate>Sat, 23 May 2020 00:17:26 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/function-refers-to-bitmap-not-working/?ID=b07d1c05-aa84-408e-89a2-2d4fc5b33e04</guid>
<category>DisplayFusion</category>
<description><![CDATA[I have a function that stopped working recently and I just realized it.
It uses System.Drawing.Bitmap and has references to System.Drawing.dll and using System.Drawing and using System.Drawing.Imaging.
DF says it is forwarding Bitmap to System.Drawing.Common, which is a .Net Core extension pack...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I have a function that stopped working recently and I just realized it.<br/>
<br/>
It uses System.Drawing.Bitmap and has references to System.Drawing.dll and using System.Drawing and using System.Drawing.Imaging.<br/>
<br/>
DF says it is forwarding Bitmap to System.Drawing.Common, which is a .Net Core extension package (I have .Net Core 3.1 with add-ons installed).<br/>
<br/>
Has something changed in recent versions causing DF to try to use .Net Core packages?<br/>
<br/>
DF 9.7 beta 14<br/>
Windows 10 v1909
</div>
]]></content:encoded>
</item>
</channel>
</rss>