See AttachedHi there,
I'm trying to bring an old MapBasic program, written for MiPro 12 to MiPro 17. The program creates some layouts and saves them as PNG-Files.
On the same machine i've installed MiPro 15 and MiPro 17.01 and when creating the PNG-Files with the same skript and source tables the files created with MiPro 15 are round about 3 - 5 times smaller, than the ones created by MiPro 17.01.
The files itself have the same resolution and color depth, but when you look closer you see, that the images created by MiPro 15 arent anti-aliased while those created by MiPro 17 are.
In the mapbasic program i disabled anything that can be disabled quality wise:
set Map Window Q4_Map_ID Image Reprojection None
Set Window Querformat_Layout_ID Smooth Vector None Smooth Text None Smooth Image None Export TrueColor On Export Antialiasing Off
Set Window Q4_Map_ID Smooth Vector None Smooth Text None Smooth Image None Export TrueColor On Export Antialiasing Off
Set Window Querformat_Layout_ID Enhanced Off
Set Window Q4_Map_ID Enhanced Off
Set Window Q4_Map_ID Export Transparency Raster ROP Export Transparency Vector Internal
Set Window Querformat_Layout_ID Printer Name strMI_PRINTER_NAME Orientation Landscape Copies 1 Papersize 9 TrueColor On
Set Window Querformat_Layout_ID Printer Transparency Raster ROP Printer Transparency Vector Internal
[Q4_Map_ID is the real map-ID of the map shown in the layout]
--> tried with "truecolor off" or other Transparency settings, made no difference in file sizes or anti-aliasing in the output images.
This screenshot shows the layout window in the upper half and the resulting PNG-File underneath, and you can clearly see, that the map in the layout
window is not anti-aliased, but the PNG-File is.
The mapbasic command "Save Window" doesn't allow to set anti-aliasing, while the MiPro GUI does,
and when you save a window in MiPro 17 with an open mapbasic window, once with and once without anti-aliasing, the commands are identical,
but the file sizes and image apearances aren't.
So it seems, that saving a window with MiPro 15 or earlier had "anti-aliasing off" as default, while in MiPro 17 it seems to be switched on.
Attached you find two workspaces demonstrating the Problem and the two generated png-files via "Save Window as".
Is there any way to control anti-aliasing when saving a window in MiPro 17?
Thanks in advance
and
Cheers
Stefan