<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Try using the MaestroAPI from the latest preview or compile from source.<br>
I can't remember when the format parameter was introduced,<br>
but the signature for the method should be:<br>
<br>
RenderRuntimeMap(string resourceId, double x, double y, double scale,
int width, int height, int dpi);<br>
RenderRuntimeMap(string resourceId, double x1, double y1, double x2,
double y2, int width, int height, int dpi);<br>
RenderRuntimeMap(string resourceId, double x, double y, double scale,
int width, int height, int dpi, string format);<br>
RenderRuntimeMap(string resourceId, double x1, double y1, double x2,
double y2, int width, int height, int dpi, string format);<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
djonio skrev:
<blockquote cite="mid:1244455891945-3042176.post@n2.nabble.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName">
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]--></o:SmartTagType>
<div class="Section1">
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">Kenneth,<o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">I am using
the MaestroAPI.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="#000066" face="Courier New" size="4"><span
style="font-size: 14pt; font-family: "Courier New"; color: rgb(0, 0, 102);">public <a
moz-do-not-send="true"
href="http://msdn2.microsoft.com/en-us/library/System.IO.Stream"
target="_top" rel="nofollow">Stream</a> RenderRuntimeMap(<br>
<a moz-do-not-send="true"
href="http://msdn2.microsoft.com/en-us/library/System.String"
target="_top" rel="nofollow">string</a> resourceId,
<br>
<a moz-do-not-send="true"
href="http://msdn2.microsoft.com/en-us/library/System.Double"
target="_top" rel="nofollow">double</a> x,
<br>
<a moz-do-not-send="true"
href="http://msdn2.microsoft.com/en-us/library/System.Double"
target="_top" rel="nofollow">double</a> y,
<br>
<a moz-do-not-send="true"
href="http://msdn2.microsoft.com/en-us/library/System.Double"
target="_top" rel="nofollow">double</a> scale,
<br>
<a moz-do-not-send="true"
href="http://msdn2.microsoft.com/en-us/library/System.Int32"
target="_top" rel="nofollow">int</a> width,
<br>
<a moz-do-not-send="true"
href="http://msdn2.microsoft.com/en-us/library/System.Int32"
target="_top" rel="nofollow">int</a> height,
<br>
<a moz-do-not-send="true"
href="http://msdn2.microsoft.com/en-us/library/System.Int32"
target="_top" rel="nofollow">int</a> dpi<br>
)</span></font><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">I don’t seem
to have a “format”
parameter. The above, from the docs, conforms to the intellisense that
I see at
design time.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">r,<o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">dennis<o:p></o:p></span></font></p>
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><font
face="Times New Roman" size="3"><span style="font-size: 12pt;">
<hr tabindex="-1" align="center" size="2" width="100%"></span></font></div>
<p class="MsoNormal"><b><font face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font
face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;"> Kenneth
Skovhede, GEOGRAF A/S (via Nabble)
[mailto:<a moz-do-not-send="true"
href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3042176&i=0"
target="_top" rel="nofollow">ml-user+64672-2059353669@...</a>] <br>
<b><span style="font-weight: bold;">Sent:</span></b> Monday, June 08,
2009 2:58
AM<br>
<b><span style="font-weight: bold;">To:</span></b> <st1:PersonName
w:st="on">Jonio, Dennis</st1:PersonName> (Aviation)<br>
<b><span style="font-weight: bold;">Subject:</span></b> Re:
[mapguide-users]
Maestro – RenderRuntimeMap questions</span></font><o:p></o:p></p>
</div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;">1) <br>
Not sure what the max values are, you will have to look <br>
through the MapGuide source to find the limits <br>
(fairly large in my experience). <br>
<br>
2) <br>
If you use MaestroAPI, just set the "format" parameter to
"JPG", <br>
there is a similar parameter in the http interface and native API. <br>
<br>
3) <br>
DPI = Dots Pr Inch <br>
So DPI defines how many pixels that your output device can display pr.
inch, <br>
and is used to calculate the display extent of geometry on your screen <br>
or printer. <br>
<br>
Scale is the display scale, eg. 1:500 or 1:1000. <br>
<br>
Say you have an object that is 1000 inches wide, and display it <br>
in 1:500, it would be two inches on screen. <br>
<br>
If you set DPI = 96, you get 96 pixels pr. inch, resulting <br>
in the object being 192 pixels wide in the image. <br>
<br>
Regards, Kenneth Skovhede, GEOGRAF A/S <br>
<br>
<br>
<br>
djonio skrev: <o:p></o:p></span></font></p>
<div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;"><br>
> Just some basic questions: <br>
> <br>
> What is the max value for width and height? <br>
> Is there a way to change the output from a png to jpg? <br>
> I am unable to discern the relationship between dpi and scale -
would <br>
> someone be willing to explain the relationship between them? <br>
> r, <br>
> dennis <br>
> <br>
> <o:p></o:p></span></font></p>
</div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><font
face="Times New Roman" size="3"><span style="font-size: 12pt;">_______________________________________________
<br>
mapguide-users mailing list <br>
<a moz-do-not-send="true"
href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3041591&i=0"
target="_top" rel="nofollow">mapguide-users@...</a> <br>
<a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/mapguide-users"
target="_top" rel="nofollow">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
<br>
<o:p></o:p></span></font></p>
<div class="MsoNormal" style="text-align: center;" align="center"><font
face="Times New Roman" size="3"><span style="font-size: 12pt;">
<hr align="center" color="#cccccc" noshade="noshade" size="1"
width="100%"></span></font></div>
<div>
<p class="MsoNormal"><font color="#666666" face="Tahoma" size="1"><span
style="font-size: 8.5pt; font-family: Tahoma; color: rgb(102, 102, 102);">This
email is a reply
to your post @ <a moz-do-not-send="true"
href="http://n2.nabble.com/Maestro-%E2%80%93-RenderRuntimeMap-questions-tp3031527p3041591.html"
target="_top" rel="nofollow">http://n2.nabble.com/Maestro-%E2%80%93-RenderRuntimeMap-questions-tp3031527p3041591.html</a><br>
You can reply by email or by visting the link above.<o:p></o:p></span></font></p>
</div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;"><o:p> </o:p></span></font></p>
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><font
face="Times New Roman" size="3"><span style="font-size: 12pt;">
<hr align="center" size="2" width="100%"></span></font></div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;">E-mails are automatically scanned for viruses
using McAfee. <o:p></o:p></span></font></p>
</div>
</div>
<br>
<hr align="left" width="300">View this message in context: <a
moz-do-not-send="true"
href="http://n2.nabble.com/Maestro-%E2%80%93-RenderRuntimeMap-questions-tp3031527p3042176.html">RE:
[mapguide-users] Maestro - RenderRuntimeMap questions</a><br>
Sent from the <a moz-do-not-send="true"
href="http://n2.nabble.com/MapGuide-Users-f1803227.html">MapGuide
Users mailing list archive</a> at Nabble.com.<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
</body>
</html>