Try using the MaestroAPI from the latest preview or compile from source.
I can't remember when the format parameter was introduced,
but the signature for the method should be:
RenderRuntimeMap(string resourceId, double x, double y, double scale,
int width, int height, int dpi);
RenderRuntimeMap(string resourceId, double x1, double y1, double x2,
double y2, int width, int height, int dpi);
RenderRuntimeMap(string resourceId, double x, double y, double scale,
int width, int height, int dpi, string format);
RenderRuntimeMap(string resourceId, double x1, double y1, double x2,
double y2, int width, int height, int dpi, string format);
Regards, Kenneth Skovhede, GEOGRAF A/S
djonio skrev:
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-2059353...@...
<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3042176&i=0>]
*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-us...@...
<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-tp3031527p3041591.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: RE: [mapguide-users] Maestro -
RenderRuntimeMap questions
<http://n2.nabble.com/Maestro-%E2%80%93-RenderRuntimeMap-questions-tp3031527p3042176.html>
Sent from the MapGuide Users mailing list archive
<http://n2.nabble.com/MapGuide-Users-f1803227.html> at Nabble.com.
------------------------------------------------------------------------
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users