#1 Mon 23 August 2004 14:45
- ROBIN Thomas
- Invité
Export de la fenetre carte en MapBasic
Bonjour,
Je recherche les commandes map Basic qui me permettrait d'exporter ma fenetre carte dans un format image (jpg, tiff, emf ...)
Ou encore mieux l'exporter directement dans un document word.
#2 Mon 23 August 2004 14:45
- Michael Delorme
- Invité
Re: Export de la fenetre carte en MapBasic
Save Window frontwindow() As w:\cartes\ma_carte.png Type "PNG" Width 15 Units "cm" Height 10 Units "cm" Resolution 96 Copyright Titre Font ( Verdana ,0,9,0)
#3 Mon 20 September 2004 14:36
- ROBIN Thomas
- Invité
Re: Export de la fenetre carte en MapBasic
Bonjour a tous
Je recherche le code Mapbasic qui permettrait d'exporter la fenetre carte tout en definissant le type d'image desire (bmp, tif, jpg...) ainsi que la taille de l'image.
Merci et bien cordialement
#4 Thu 23 September 2004 08:21
- Pascal Geraut
- Invité
Re: Export de la fenetre carte en MapBasic
Bonjour
issu de la doc MApbasic :
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 ... ] ]
window_id is an Integer Window ID representing a Map, Layout, Graph,
Legend, Statistics, Info, or Ruler window; to obtain a window ID, call a
function such as FrontWindow( ) or WindowID( )
filespec is a String representing the name of the file to create
filetype is a String representing a file format:
BMP specifies Bitmap format;
WMF specifies Windows Metafile format;
JPEG specifies JPEG format;
JP2 specifies JPEG 2000 format
PNG specifies Portable Network Graphics format;
TIFF specifies TIFF format;
PSD specifies Photoshop 3.0 format;
TIFFCMYK specifies TIFF CMYK format
EMF specifies Windows Enhanced Metafile format.
image_width is a number that specifies the desired image width
image_height is a number that specifies the desired image height
paper_units is a string representing a paper unit name (e.g. cm for centimeters)
output_dpi is a number that specifies the output resolution in DPI (dots per inch).
notice is a string that represents a copyright notice; it will appear at the bottom of the image