<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Temporary InCanvas Graphics Image Colors in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10324804#M25942</link>
    <description>&lt;P&gt;Hello Jeremy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't recall any legacy of red being magenta and I go all the way back to Windows 3.1. Even 16 colours were the right 16 colours.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was looking at this quite helpful description of the bmp file structure:&lt;BR /&gt;&lt;A href="https://en.wikipedia.org/wiki/BMP_file_format" target="_blank" rel="noopener"&gt;https://en.wikipedia.org/wiki/BMP_file_format&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found in summary that bitmaps are either:&lt;BR /&gt;Indexed in which each pixel location refers to a colour in a table&lt;BR /&gt;Non-indexed where each pixel location has a number of bytes that fully represent the RGB value individually&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried both of those forms with the various associated colour depths (even tried run length encoded). I think 'no error' implies someone knows what format should be used or perhaps they can settle for the term 'known limitation'. It's a good feature so having it is better than not (even as is).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When all is said and done I open those various bmp file forms using Windows viewers/editors and the colours are consistent. I don't personally use Decals in Revit but I assume others find they have the right colours when they are used?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 May 2021 21:52:24 GMT</pubDate>
    <dc:creator>RPTHOMAS108</dc:creator>
    <dc:date>2021-05-19T21:52:24Z</dc:date>
    <item>
      <title>Temporary InCanvas Graphics Image Colors</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10316297#M25934</link>
      <description>&lt;P&gt;Hello all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was creating a &lt;A href="https://youtu.be/ekLz54hLcHc" target="_blank" rel="noopener"&gt;video&lt;/A&gt; on the awesome new Temporary InCanvas Graphics API and had a question on the image colors.&amp;nbsp; As you can see, they are...off.&amp;nbsp; What are the rules the images, and colors, we can use in this feature?&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3dimdev_0-1621174309323.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/919319i4C1A34F8B7C45BC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3dimdev_0-1621174309323.png" alt="3dimdev_0-1621174309323.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 May 2021 14:16:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10316297#M25934</guid>
      <dc:creator>3dimdev</dc:creator>
      <dc:date>2021-05-16T14:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary InCanvas Graphics Image Colors</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10317857#M25935</link>
      <description>&lt;P&gt;Great video, and nice mini-tutorial on using the new feature, and we all love Einstein anyway, don't we, so great marketing gag as well. I don't understand your exact question, though. Can you spell it out more precisely, please, so I can pass it on to the development team, if needed? Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 11:36:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10317857#M25935</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-05-17T11:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary InCanvas Graphics Image Colors</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10318210#M25936</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for the kind words.&amp;nbsp; A little encouragement when starting a new venture is very appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the image displays in a Revit view, the colors do not match those of the image on file.&amp;nbsp; It appears the tool may have a limited number of colors it can display.&amp;nbsp; Do we know what those colors are, so we can design our graphics accordingly?&amp;nbsp; I feel like there's a name for that, color palette, or color space, but I'm not familiar enough with image files to know for sure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 13:55:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10318210#M25936</guid>
      <dc:creator>3dimdev</dc:creator>
      <dc:date>2021-05-17T13:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary InCanvas Graphics Image Colors</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10319141#M25937</link>
      <description>&lt;P&gt;There is a sample in the SDK where this new feature is used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...\RevitSDK\2022\Samples\InCanvasControlAPI\CS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It contains a bitmap image which suggests 'RGB 8 bits/channel'. The image is also quite small to represent a button icon (although they appear to have no limit on size according to your results).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not tried the feature but was imagining these things are a bit like the clutter of icons you get in google earth when you zoom right out i.e. zoom scale unaware.&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 20:35:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10319141#M25937</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2021-05-17T20:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary InCanvas Graphics Image Colors</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10319642#M25938</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1035859"&gt;@RPTHOMAS108&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I didn't think to look at the sample images, brilliant idea.&amp;nbsp; The original image is 24 bit, I saved it down to both 16 and 8 bit, but got similar results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the 40 second mark of the video I mentioned you can see the sdk sample in action, a small part of it at least.&amp;nbsp; The images stay at their original size, independent of zoom level.&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 02:25:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10319642#M25938</guid>
      <dc:creator>3dimdev</dc:creator>
      <dc:date>2021-05-18T02:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary InCanvas Graphics Image Colors</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10322293#M25939</link>
      <description>&lt;P&gt;Very odd here is the results of a simple comparison:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Red 255,59,189 compare with (255,0,0)&lt;/P&gt;&lt;P&gt;Green 0,255,189 compare with (0,255,0)&lt;/P&gt;&lt;P&gt;Blue&amp;nbsp;0,59,255 compare with (0,0,255)&lt;/P&gt;&lt;P&gt;Black 0,59,189 compare with (0,0,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From above seems the 59 is being added to green and 189 to blue.&lt;/P&gt;&lt;P&gt;0011 1011 = 59&lt;BR /&gt;1011 1101 = 189&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems to be something simple we are not doing or an error with this feature, only time and an explanation/clarification will tell.&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 00:30:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10322293#M25939</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2021-05-19T00:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary InCanvas Graphics Image Colors</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10323104#M25940</link>
      <description>&lt;P&gt;Thank you for your research. I passed on the question to the development team and hope they can clarify.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 10:07:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10323104#M25940</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-05-19T10:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary InCanvas Graphics Image Colors</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10324211#M25941</link>
      <description>&lt;P&gt;OK... the answer may be elusive and tricky... response so far:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The creators of this feature can correct me, but I believe that this is just what legacy bitmap handling code does. It is quite difficult to explain from looking at the code and I am not aware of any documentation existing. This is not an error; there is quite a lot of code that intentionally does what it does.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 17:35:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10324211#M25941</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-05-19T17:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary InCanvas Graphics Image Colors</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10324804#M25942</link>
      <description>&lt;P&gt;Hello Jeremy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't recall any legacy of red being magenta and I go all the way back to Windows 3.1. Even 16 colours were the right 16 colours.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was looking at this quite helpful description of the bmp file structure:&lt;BR /&gt;&lt;A href="https://en.wikipedia.org/wiki/BMP_file_format" target="_blank" rel="noopener"&gt;https://en.wikipedia.org/wiki/BMP_file_format&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found in summary that bitmaps are either:&lt;BR /&gt;Indexed in which each pixel location refers to a colour in a table&lt;BR /&gt;Non-indexed where each pixel location has a number of bytes that fully represent the RGB value individually&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried both of those forms with the various associated colour depths (even tried run length encoded). I think 'no error' implies someone knows what format should be used or perhaps they can settle for the term 'known limitation'. It's a good feature so having it is better than not (even as is).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When all is said and done I open those various bmp file forms using Windows viewers/editors and the colours are consistent. I don't personally use Decals in Revit but I assume others find they have the right colours when they are used?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 21:52:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10324804#M25942</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2021-05-19T21:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary InCanvas Graphics Image Colors</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10325677#M25943</link>
      <description>&lt;P&gt;Yup, seems weird to me too... I'm continuing the &lt;A href="https://autodesk.slack.com/archives/C0SR6NAP8/p1621418682002300" target="_self"&gt;internal discussion&lt;/A&gt;, hoping for further (colourful) illumination...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 08:13:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10325677#M25943</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-05-20T08:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary InCanvas Graphics Image Colors</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10354715#M25944</link>
      <description>&lt;P&gt;Might be some conspiracy going on here, but 0-59-189 is the default RGB code for Selection Blue, in the graphic settings under the options. So it seems the images always have an overlay showing it as "selected". But why? &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-06-01_9-26-40.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/925320i32036413B0AE7DAC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2021-06-01_9-26-40.png" alt="2021-06-01_9-26-40.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 07:29:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10354715#M25944</guid>
      <dc:creator>tamas.deri</dc:creator>
      <dc:date>2021-06-01T07:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary InCanvas Graphics Image Colors</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10355984#M25945</link>
      <description>I don't know about a conspiracy, but that is certainly intriguing! What's the saying, 'where there's smoke, there's fire.' And you and Richard have uncovered some blue smoke &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Jun 2021 16:52:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10355984#M25945</guid>
      <dc:creator>3dimdev</dc:creator>
      <dc:date>2021-06-01T16:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary InCanvas Graphics Image Colors</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10356547#M25946</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4453181"&gt;@tamas.deri&lt;/a&gt;&amp;nbsp;good observation however I find that the following settings do not correct the&amp;nbsp;colourisation issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="210601.PNG" style="width: 424px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/925526iDD1B2E5D31CF538B/image-size/large?v=v2&amp;amp;px=999" role="button" title="210601.PNG" alt="210601.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So still one for the x-files.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 20:56:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10356547#M25946</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2021-06-01T20:56:10Z</dc:date>
    </item>
    <item>
      <title>Temporary InCanvas Graphics Image Colors</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10375228#M25947</link>
      <description>&lt;P&gt;Further feedback on this topic from the development team that may help understand the situation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Working on some related code, I come across some oddities, which may explain the reported behavior. Our team's current project is performance enhancement for handling of bitmaps. This includes loading and drawing them. I find many processing cases in the legacy code and am struggling to understand the design. For example, "built-in" bitmap controls can come in 4, 8, 24, and 32 bpp (color). Some of them are meant to be greyscale and colorized, others are meant to use a reduced color palette with a special transparent color. These categories are not mutually exclusive! The 32-bit ones are especially strange, since the legacy code had no way of properly handling an 8-bit alpha channel. When in-canvas controls load external bitmaps, it is possible that an inappropriate handling case can be chosen. Some of my current efforts include an attempt to refactor and clean up the legacy internal code, but I am not sure that it will make sense to extend that work to the in-canvas control API, an area which is unfamiliar to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure if this has been mentioned, but 0,59,189 (decimal) is the default prehilite color.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 06:08:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10375228#M25947</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-06-09T06:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary InCanvas Graphics Image Colors</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10376806#M25948</link>
      <description>&lt;P&gt;Jeremy thanks for the update.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From my research at the time the bmp's you get from 'Paint' program are 24 bit only. The older 1, 4 and 8 were for indexed monochrome, 16 and 256 pallet. Greyscale is either 16 or 256&amp;nbsp; or perhaps 24 bit (non-indexed).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My understanding was that indexing for fewer colours was reasonable due to the likely repetition of the colours in the image, so two or more pixel positions can refer to same index using less bytes in file overall. However when you get to a 24 bit image the likelihood is that the palette of indexed colours would be almost as large as the image grid size, in terms of colour variations and numbers of pixels i.e. no benefit of indexing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The inclusion of alpha channel in 32 bit bmp is supported by the bmp format and can be displayed in Windows but largely is ignored it seems. This 32 bit format doesn't appear in Revit in-canvas control when you save in that format via System.Drawing.Imaging.PixelFormat.&lt;/P&gt;&lt;P&gt;e.g.:&amp;nbsp; PixelFormat.Format32bpp... formats.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is slightly more work involved to create an indexed bitmap via&amp;nbsp;System.Drawing so I just relied on imaging programs to save as those for testing (I checked 'Bit depth' under 'Details' of file properties in file explorer).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a section in the bmp file header that identifies the form of bitmap anyway, so should be no confusion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is also the notion of&amp;nbsp;&lt;A href="https://en.wikipedia.org/wiki/8-bit_color" target="_blank" rel="noopener"&gt;'Color quantization'&lt;/A&gt;&amp;nbsp;that occurs when converting to 8-bit colour display from 24 bit. The hypothesis being that since less bytes were reserved for blue they would be over populated. I think I was just clutching at straws at that point though since 0,59,189 is not random. I did try changing selection colours in Revit as noted above i.e. to see if selection colour was being added to colour but that had no effect on result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The situation is very low priority for me however it would have consequences if a developer wanted to implement red, amber, green icon system etc.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 16:32:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10376806#M25948</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2021-06-09T16:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary InCanvas Graphics Image Colors</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10376882#M25949</link>
      <description>&lt;P&gt;Thank you for your detailed research results! I passed them on back to the devteam and hope they find them useful as well.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 16:58:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10376882#M25949</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-06-09T16:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary InCanvas Graphics Image Colors</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10376996#M25950</link>
      <description>&lt;P&gt;They reply:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This all parallels my own findings. Unfortunately, I don't believe that it is feasible to work around issues with in-canvas control API to display the bitmaps as expected in all cases. Fixing this situation may require commitment to a real project. For example, there is a regression test for the functionality and it does not seem to produce the correct colours.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 17:50:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10376996#M25950</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-06-09T17:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary InCanvas Graphics Image Colors</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10377231#M25951</link>
      <description>&lt;P&gt;I tried exporting a bitmap to the 8 formats managed by Gimp: they all produced a bitmap with the same resolution, but fewer colors, with the exception of r8 which crashed and a8 which worked, but we only see the background.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They seem to be converted to some standard palette with a small number of colors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the original bitmap. The black part is transparent in the formats that allow it:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanomenci_0-1623265652922.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/928407iE051C9C4130DF4EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanomenci_0-1623265652922.png" alt="stefanomenci_0-1623265652922.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I see in Revit. The first bitmap looks different from the others because it's highlighted because I was hovering the mouse over it when I got the snapshot. Without mouse hovering it would look identical to x1 and x8:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanomenci_1-1623265774941.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/928409i6F69264249B31CF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanomenci_1-1623265774941.png" alt="stefanomenci_1-1623265774941.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are the formats in Gimp:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanomenci_0-1623259198100.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/928376i50F0E68EC0887C09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanomenci_0-1623259198100.png" alt="stefanomenci_0-1623259198100.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I used:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;foreach &lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;var &lt;/SPAN&gt;&lt;SPAN&gt;item &lt;/SPAN&gt;&lt;SPAN&gt;in new&lt;/SPAN&gt;&lt;SPAN&gt;[] {(&lt;/SPAN&gt;&lt;SPAN&gt;"r5"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;), (&lt;/SPAN&gt;&lt;SPAN&gt;"a1"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;), (&lt;/SPAN&gt;&lt;SPAN&gt;"x1"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;), (&lt;/SPAN&gt;&lt;SPAN&gt;"r8"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;4&lt;/SPAN&gt;&lt;SPAN&gt;), (&lt;/SPAN&gt;&lt;SPAN&gt;"a8"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;SPAN&gt;), (&lt;/SPAN&gt;&lt;SPAN&gt;"x8"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;6&lt;/SPAN&gt;&lt;SPAN&gt;)})&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;var &lt;/SPAN&gt;&lt;SPAN&gt;point = &lt;/SPAN&gt;&lt;SPAN&gt;XYZ&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;BasisX &lt;/SPAN&gt;&lt;SPAN&gt;* &lt;/SPAN&gt;&lt;SPAN&gt;item.&lt;/SPAN&gt;&lt;SPAN&gt;Item2&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;try&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;var &lt;/SPAN&gt;&lt;SPAN&gt;data =&lt;/SPAN&gt; &lt;SPAN&gt;new &lt;/SPAN&gt;&lt;SPAN&gt;InCanvasControlData&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;&lt;SPAN&gt;"color {&lt;/SPAN&gt;&lt;SPAN&gt;item.&lt;/SPAN&gt;&lt;SPAN&gt;Item1&lt;/SPAN&gt;&lt;SPAN&gt;}.bmp"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt; point);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;        mgr.&lt;/SPAN&gt;&lt;SPAN&gt;AddControl&lt;/SPAN&gt;&lt;SPAN&gt;(data, doc.&lt;/SPAN&gt;&lt;SPAN&gt;ActiveView&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Id&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    }&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;catch&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;Debug&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Print&lt;/SPAN&gt;&lt;SPAN&gt;(item.&lt;/SPAN&gt;&lt;SPAN&gt;Item1&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    }&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;Utils&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;CreateTextNote&lt;/SPAN&gt;&lt;SPAN&gt;(item.&lt;/SPAN&gt;&lt;SPAN&gt;Item1&lt;/SPAN&gt;&lt;SPAN&gt;, point &lt;/SPAN&gt;&lt;SPAN&gt;+ &lt;/SPAN&gt;&lt;SPAN&gt;XYZ&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;BasisZ&lt;/SPAN&gt;&lt;SPAN&gt;, doc);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 19:32:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/10377231#M25951</guid>
      <dc:creator>stefanome</dc:creator>
      <dc:date>2021-06-09T19:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary InCanvas Graphics Image Colors</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/11217442#M25952</link>
      <description>&lt;P&gt;I believe this issue is now resolved in 2023, not sure if it was resolved in a previous version between but I just tried an image in 2023 and the colours were correct.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 16:37:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/11217442#M25952</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2022-06-06T16:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary InCanvas Graphics Image Colors</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/12610849#M25953</link>
      <description>&lt;P&gt;Any Updates from this?&lt;BR /&gt;I created an image with the size of 32x32, with the background of (0,128,128), saved it as a bmp as stated in the documentation.&amp;nbsp;&lt;BR /&gt;But when i add it to revit, it is invisible.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 13:14:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/temporary-incanvas-graphics-image-colors/m-p/12610849#M25953</guid>
      <dc:creator>Ramoon_Bandeira</dc:creator>
      <dc:date>2024-03-04T13:14:39Z</dc:date>
    </item>
  </channel>
</rss>

