[mapguide-users] Maestro - RenderRuntimeMap questions

djonio DJonio at miami-airport.com
Mon Jun 8 06:11:31 EDT 2009


Kenneth,

 

I am using the MaestroAPI.

public Stream
<http://msdn2.microsoft.com/en-us/library/System.IO.Stream>
RenderRuntimeMap(
   string <http://msdn2.microsoft.com/en-us/library/System.String>
resourceId, 
   double <http://msdn2.microsoft.com/en-us/library/System.Double>  x, 
   double <http://msdn2.microsoft.com/en-us/library/System.Double>  y, 
   double <http://msdn2.microsoft.com/en-us/library/System.Double>
scale, 
   int <http://msdn2.microsoft.com/en-us/library/System.Int32>  width, 
   int <http://msdn2.microsoft.com/en-us/library/System.Int32>  height, 
   int <http://msdn2.microsoft.com/en-us/library/System.Int32>  dpi
)

I don't seem to have a "format" parameter. The above, from the docs,
conforms to the intellisense that I see at design time.

r,

dennis

________________________________

From: Kenneth Skovhede, GEOGRAF A/S (via Nabble)
[mailto:ml-user+64672-2059353669 at n2.nabble.com] 
Sent: Monday, June 08, 2009 2:58 AM
To: Jonio, Dennis (Aviation)
Subject: Re: [mapguide-users] Maestro - RenderRuntimeMap questions

 

1) 
Not sure what the max values are, you will have to look 
through the MapGuide source to find the limits 
(fairly large in my experience). 

2) 
If you use MaestroAPI, just set the "format" parameter to "JPG", 
there is a similar parameter in the http interface and native API. 

3) 
DPI = Dots Pr Inch 
So DPI defines how many pixels that your output device can display pr.
inch, 
and is used to calculate the display extent of geometry on your screen 
or printer. 

Scale is the display scale, eg. 1:500 or 1:1000. 

Say you have an object that is 1000 inches wide, and display it 
in 1:500, it would be two inches on screen. 

If you set DPI = 96, you get 96 pixels pr. inch, resulting 
in the object being 192 pixels wide in the image. 

Regards, Kenneth Skovhede, GEOGRAF A/S 



djonio skrev: 


> Just some basic questions: 
> 
> What is the max value for width and height? 
> Is there a way to change the output from a png to jpg? 
> I am unable to discern the relationship between dpi and scale -  would

> someone be willing to explain the relationship between them? 
> r, 
> dennis 
> 
>   

_______________________________________________ 
mapguide-users mailing list 
mapguide-users at ...
<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3041591&i=0>  
http://lists.osgeo.org/mailman/listinfo/mapguide-users



________________________________

This email is a reply to your post @
http://n2.nabble.com/Maestro-%E2%80%93-RenderRuntimeMap-questions-tp3031
527p3041591.html
You can reply by email or by visting the link above.

 

________________________________

E-mails are automatically scanned for viruses using McAfee. 


-- 
View this message in context: http://n2.nabble.com/Maestro-%E2%80%93-RenderRuntimeMap-questions-tp3031527p3042176.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090608/2fa15ed5/attachment.html


More information about the mapguide-users mailing list