<?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: Convert Map to Image (.jpg .....) in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/convert-map-to-image-jpg/m-p/164158#M4270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't agree with the idea of using jpeg creating application to convert map into jpeg image. It is obvious that as long as we implement and use an &lt;/SPAN&gt;&lt;A href="http://www.rasteredge.com/how-to/vb-net-imaging/image-converting/"&gt;image converting&lt;/A&gt;&lt;SPAN&gt; tool, we can quickly load the map in the image converting software, then choose the outputting image file "jpeg", then we can simply convert and export the map into jpeg image file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Apr 2014 02:47:12 GMT</pubDate>
    <dc:creator>HILLARYHALL</dc:creator>
    <dc:date>2014-04-10T02:47:12Z</dc:date>
    <item>
      <title>Convert Map to Image (.jpg .....)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/convert-map-to-image-jpg/m-p/164154#M4266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hey all....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How to convert Map to Image to use it &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thx &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 May 2010 23:54:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/convert-map-to-image-jpg/m-p/164154#M4266</guid>
      <dc:creator>ashrafelhakim</dc:creator>
      <dc:date>2010-05-29T23:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Map to Image (.jpg .....)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/convert-map-to-image-jpg/m-p/164155#M4267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should use the IExport interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See the "Create JPEG from ActiveView" code snippet to see how it's done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nir&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;#region"Create JPEG from ActiveView"
// ArcGIS Snippet Title:
// Create JPEG from ActiveView
// 
// Long Description:
// Creates a .jpg (JPEG) file from IActiveView. Default values of 96 DPI are used for the image creation.
// 
// Add the following references to the project:
// ESRI.ArcGIS.Carto
// ESRI.ArcGIS.Display
// ESRI.ArcGIS.Geometry
// ESRI.ArcGIS.Output
// ESRI.ArcGIS.System
// 
// Intended ArcGIS Products for this snippet:
// ArcGIS Desktop (ArcEditor, ArcInfo, ArcView)
// ArcGIS Engine
// ArcGIS Server
// 
// Applicable ArcGIS Product Versions:
// 9.2
// 9.3
// 
// Required ArcGIS Extensions:
// (NONE)
// 
// Notes:
// This snippet is intended to be inserted at the base level of a Class.
// It is not intended to be nested within an existing Method.
// 

///&amp;lt;summary&amp;gt;Creates a .jpg (JPEG) file from IActiveView. Default values of 96 DPI are used for the image creation.&amp;lt;/summary&amp;gt;
///
///&amp;lt;param name="activeView"&amp;gt;An IActiveView interface&amp;lt;/param&amp;gt;
///&amp;lt;param name="pathFileName"&amp;gt;A System.String that the path and filename of the JPEG you want to create. Example: "C:\temp\test.jpg"&amp;lt;/param&amp;gt;
/// 
///&amp;lt;returns&amp;gt;A System.Boolean indicating the success&amp;lt;/returns&amp;gt;
/// 
///&amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;
public System.Boolean CreateJPEGFromActiveView(ESRI.ArcGIS.Carto.IActiveView activeView, System.String pathFileName)
{
&amp;nbsp; //parameter check
&amp;nbsp; if (activeView == null || !(pathFileName.EndsWith(".jpg")))
&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;
&amp;nbsp; }
&amp;nbsp; ESRI.ArcGIS.Output.IExport export = new ESRI.ArcGIS.Output.ExportJPEGClass();
&amp;nbsp; export.ExportFileName = pathFileName;

&amp;nbsp; // Microsoft Windows default DPI resolution
&amp;nbsp; export.Resolution = 96;
&amp;nbsp; ESRI.ArcGIS.Display.tagRECT exportRECT = activeView.ExportFrame;
&amp;nbsp; ESRI.ArcGIS.Geometry.IEnvelope envelope = new ESRI.ArcGIS.Geometry.EnvelopeClass();
&amp;nbsp; envelope.PutCoords(exportRECT.left, exportRECT.top, exportRECT.right, exportRECT.bottom);
&amp;nbsp; export.PixelBounds = envelope;
&amp;nbsp; System.Int32 hDC = export.StartExporting();
&amp;nbsp; activeView.Output(hDC, (System.Int16)export.Resolution, ref exportRECT, null, null);

&amp;nbsp; // Finish writing the export file and cleanup any intermediate files
&amp;nbsp; export.FinishExporting();
&amp;nbsp; export.Cleanup();

&amp;nbsp; return true;
}
#endregion&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:35:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/convert-map-to-image-jpg/m-p/164155#M4267</guid>
      <dc:creator>NirYoscovitz</dc:creator>
      <dc:date>2021-12-11T08:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Map to Image (.jpg .....)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/convert-map-to-image-jpg/m-p/164156#M4268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry to bring this up...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi NirNir,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your post about "Create JPEG from ActiveView" code snippet. It's really helpful. I have a question about this subject. Is there another way to convert Map to JPEG without ActiveView? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because I'm making a server without interface, only a log form to see which clients connect and what they do, so I don't think my application could use the IActiveView, or could it be used without loading the map in the main form of my application? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry I'm new to ArcGIS so I really appreciate the help. Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 03:50:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/convert-map-to-image-jpg/m-p/164156#M4268</guid>
      <dc:creator>LeLong</dc:creator>
      <dc:date>2010-11-18T03:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Map to Image (.jpg .....)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/convert-map-to-image-jpg/m-p/164157#M4269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN style="color:&amp;quot;#000000&amp;quot;;"&gt;Hi, guys.&lt;BR /&gt;As you see, there are many free conversion tools online. But I don't suggest you to use them to do with your &lt;/SPAN&gt;&lt;A href="http://www.yiigo.com/net-document-image-sdk/conversion-support.shtml" rel="nofollow"&gt;&lt;SPAN style="color:&amp;quot;#000000&amp;quot;;"&gt;image conversion program&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="color:&amp;quot;#000000&amp;quot;;"&gt;. Because I always believe that the free tools online do not have so many professional functions as the paid ones. And it is said that some of them might contain some virus. Check some free trials of the paid professional conversion tools to convert image file to word doc first before you make your final decision if possible. I also suggest you choose one whose way of processing is simple and fast. It can save a lot of time for you. Remember to do your conversion work according to &lt;/SPAN&gt;&lt;A href="http://www.yiigo.com/guides/csharp/how-to-convert.shtml" rel="nofollow"&gt;&lt;SPAN style="color:&amp;quot;#000000&amp;quot;;"&gt;its conversion tutorial page&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;#000000&amp;quot;;"&gt;about how to convert document image using C#.NET. I hope you success. Good luck.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Arron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 08:21:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/convert-map-to-image-jpg/m-p/164157#M4269</guid>
      <dc:creator>arronlee</dc:creator>
      <dc:date>2013-08-23T08:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Map to Image (.jpg .....)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/convert-map-to-image-jpg/m-p/164158#M4270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't agree with the idea of using jpeg creating application to convert map into jpeg image. It is obvious that as long as we implement and use an &lt;/SPAN&gt;&lt;A href="http://www.rasteredge.com/how-to/vb-net-imaging/image-converting/"&gt;image converting&lt;/A&gt;&lt;SPAN&gt; tool, we can quickly load the map in the image converting software, then choose the outputting image file "jpeg", then we can simply convert and export the map into jpeg image file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 02:47:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/convert-map-to-image-jpg/m-p/164158#M4270</guid>
      <dc:creator>HILLARYHALL</dc:creator>
      <dc:date>2014-04-10T02:47:12Z</dc:date>
    </item>
  </channel>
</rss>

