The JPEG quality factor describes how much details you are willing to lose in the JPEG compression.  With the highest quality (100), the saved image should be the same quality as the map window image.
 
Higher quality is not the same as higher resolution, which says that you want an image with a lot more pixels in it, so you can zoom in and see more details.  Higher resolution is available to you when you click the "Options" button when you save the map window to any image format.  For historic reasons this option was implemented in the GISDK by folding it into the image quality option for all image formats, but using the Quality number as a negative number.
 
For example
 
    SaveMapToImage(, "c:\\Image.png", "PNG", {{"Quality", -200}})
 
will save the current map image with 200 dpi.
 
Two notes:
 
1. This is an undocumented usage of the "Quality" option, it is slated to be replaced by a "Resolution" option.
2. The allowable dpi values depend on your screen resolution, graphics card and memory.
 
-Kjartan


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Black
Sent: Friday, February 17, 2006 4:41 PM
To: [email protected]
Subject: RE: [Maptitude] SaveMapToImage() quality

Tried PNG.  Same result.

 

Jason Black

[EMAIL PROTECTED]

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Reinaldo Paul Pérez Machado
Sent: Friday, February 17, 2006 3:39 PM
To: [email protected]
Subject: Re: [Maptitude] SaveMapToImage() quality

 

Hi:

Try with PNG...

Reinaldo




Jason Black wrote:

Has anyone successfully used SaveMapToImage()?

 

No matter what image type or quality I select, the resulting image is never even close to the quality I get when I use File-Save As-jpg.  Even when I use the highest quality setting in the DK, it’s worse than the GUI method.  I’ve also tried SaveMapToBitmap and SaveMapToJpeg, but with similar results.  I have too many records to want to do these each manually, but the quality is so much better, it’s hard to settle for what I can get out of the DK.

 

Any recommendations?

 

Jason Black

[EMAIL PROTECTED]

 



SPONSORED LINKS
Geographic information systems Geography game Geography game for kid
Geography


YAHOO! GROUPS LINKS




Reply via email to