Harita Penceresini Resim Olarak Kaydetme
MapBasic programımıza aktif harita penceresini resim olarak kaydeden bir buton eklemek isteyebiliriz. Bunun için Save Window
komutunu kullanmamız gerekir.
Yapı:
Save Window window_id
As filespec
Type filetype
[ Width image_width [ Units paper_units ] ]
[ Height image_height [ Units paper_units ] ]
[ Resolution output_dpi ]
[ Copyright notice [ Font… ] ]
filetype parametresinde kullanabileceğimiz formatlar:
- “BMP” Bitmap format;
- “WMF” Windows Metafile format;
- “JPEG” JPEG format;
- “JP2” JPEG 2000 format;
- “PNG” Portable Network Graphics format;
- “TIFF” TIFF format;
- “TIFFCMYK” TIFF CMYK format;
- “TIFFG4” TIFFG4 format;
- “TIFFLZW” TIFFLZW format;
- “GIF” GIF format;
- “PSD” Photoshop 3.0 format;
- “EMF” Windows Enhanced Metafile format;
- “GEOTIFF” the GeoTIFF format.
Örnek:
Aşağıdaki kod aktif harita penceresini verilen yola GIF imajı olarak kaydeder:
Save Window FrontWindow() As "C:\Harita.gif" Type "GIF" Copyright "Copyright " + Chr$(169) + " Şirket"
Comments (0)
Trackbacks (0)
Leave a comment
Trackback