<?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: How do you display a bmp using the AcGiGeometry::image method? in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/how-do-you-display-a-bmp-using-the-acgigeometry-image-method/m-p/4804943#M12706</link>
    <description>&lt;P&gt;Hi Darcy,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a sample code snippet to explain this :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;AcGiImageBGRA32 giImage;

AcGiPixelBGRA32 *pixels = new AcGiPixelBGRA32[ImageWidth * ImageHeight];

for (int i = 0; i &amp;lt; ImageWidth; i++)
{
	for (int j=0; j &amp;lt; ImageHeight; j++)
	{
		pixels[(j * ImageWidth) + i].setBGRA(blue, green, red, alpha);
	}
}

giImage.setImage(ImageWidth, ImageHeight, pixels);&lt;/PRE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Balaji&lt;/P&gt;</description>
    <pubDate>Mon, 10 Feb 2014 10:52:12 GMT</pubDate>
    <dc:creator>Balaji_Ram</dc:creator>
    <dc:date>2014-02-10T10:52:12Z</dc:date>
    <item>
      <title>How do you display a bmp using the AcGiGeometry::image method?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-do-you-display-a-bmp-using-the-acgigeometry-image-method/m-p/4796401#M12705</link>
      <description>Does anyone know what format the imageSource needs to be in? The AcGiImageBGRA32 takes a pointer to a AcGiPixelBGRA32, I'm assuming this is an array of the pixels. Is it in a top-down layout or bottom-down? I'm also assuming from the BGRA designation that the colors of each pixel are reversed from that of a bmp. Thanks for looking at this, the SDK had little to say and I didn't see anything on the forum or with Google.</description>
      <pubDate>Wed, 05 Feb 2014 18:40:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-do-you-display-a-bmp-using-the-acgigeometry-image-method/m-p/4796401#M12705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-05T18:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display a bmp using the AcGiGeometry::image method?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-do-you-display-a-bmp-using-the-acgigeometry-image-method/m-p/4804943#M12706</link>
      <description>&lt;P&gt;Hi Darcy,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a sample code snippet to explain this :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;AcGiImageBGRA32 giImage;

AcGiPixelBGRA32 *pixels = new AcGiPixelBGRA32[ImageWidth * ImageHeight];

for (int i = 0; i &amp;lt; ImageWidth; i++)
{
	for (int j=0; j &amp;lt; ImageHeight; j++)
	{
		pixels[(j * ImageWidth) + i].setBGRA(blue, green, red, alpha);
	}
}

giImage.setImage(ImageWidth, ImageHeight, pixels);&lt;/PRE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Balaji&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2014 10:52:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-do-you-display-a-bmp-using-the-acgigeometry-image-method/m-p/4804943#M12706</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2014-02-10T10:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display a bmp using the AcGiGeometry::image method?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-do-you-display-a-bmp-using-the-acgigeometry-image-method/m-p/5943300#M12707</link>
      <description>&lt;P&gt;What happens to the new AcGiPixelBGRA32 Array?&lt;/P&gt;&lt;P&gt;When I create it in Line:&lt;/P&gt;&lt;PRE&gt;AcGiPixelBGRA32 *pixels = new AcGiPixelBGRA32[ImageWidth * ImageHeight];&lt;/PRE&gt;&lt;P&gt;I have to delete it at some point.&lt;/P&gt;&lt;P&gt;When I do this, then AutoCAD crashes.&lt;/P&gt;&lt;P&gt;What is wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 11:52:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-do-you-display-a-bmp-using-the-acgigeometry-image-method/m-p/5943300#M12707</guid>
      <dc:creator>BigBadBernie</dc:creator>
      <dc:date>2015-12-09T11:52:45Z</dc:date>
    </item>
  </channel>
</rss>

