Adding Logos to er mapper 6




Yüklə 14.82 Kb.
tarix28.02.2016
ölçüsü14.82 Kb.


Adding Logos to ER Mapper 6

This document explains how to add a logo to ER Mapper’s Map Composition. Logos are added as Encapsulated Postscript (EPS) files.


About EPS Files


Encapsulated Postscript (EPS) files can be vector (line art), raster (image) or a combination. Vector files are preferred because they can be scaled to any print size and will always be rendered with clean lines and edges. Raster files are more common, but can look pixelated if the image is printed at a large size. Following are some guidelines for creating the EPS file for your logo you need to start with:

Vector (line art) files–These files typically are created in vector drawing programs such as Adobe Illustrator, Corel Draw or AutoCAD. To create the EPS file, export or save the logo as an Encapsulated Postscript file in your drawing product, or use a program to convert it from another format such as CDR, DWG, etc. to EPS. Note that some programs create variations of EPS files that ER Mapper does not support, so make the EPS as generic as possible. Make sure your EPS file has a “.eps” file extension.

Raster (image) files–These files typically are created in imaging or painting programs such as Adobe Photoshop, Paintshop Pro, or even ER Mapper. To create the EPS file from outside ER Mapper, first save it as an RGB TIFF image. (Try to avoid using very small images less than 100 by 100 pixels, and don’t use very large ones either.) Then open the TIFF image in ER Mapper and use Save As to save it to an ER Mapper Raster Dataset (ERS) file. Then convert the ERS file to EPS using Utilities/Export Graphics formats/ Encapsulated Postscript (EPS). Make sure your EPS file has a “.eps” file extension.

Steps for adding the EPS logo to ER Mapper


Follow these steps to create the files needed to add the EPS file as a logo in ERMapper’s Map Composition. Make sure your EPS file is named with a “.eps” file extension before starting.

Step 1


Copy the .eps file into the legendps/Logo directory in ER Mapper.

Name the file something that makes sense to keep it separate from other files in that directory, such as “My_Logo.eps.”

Step 2


Open the EPS file in a text editor to view it.

Open the EPS file in Wordpad or Word (not Notepad) to view it. Locate the line near the beginning that starts with “%%BoundingBox...” and write down the four values following it. For example:

%%BoundingBox: 50 25 600 800

These values define the size of the bounding box for the EPS logo, and you will use them later. The four values define the X origin, Y origin X extent, and Y extent of the logo respectively.

Step 3


Copy an existing .ps file from another logo in the "legendps/Logo" directory.

Copy an existing “.ps” file in the legendps/Logo directory, and give it the same name as your .eps file. For example, you might have a “My_Logo.eps” (the original .eps file) and a “My_Logo1.ps” (the copy of another logo's .ps file). The “MapInfo_Logo.ps” file is a good example to copy.

Step 4


Open the new .ps file in a text editor to edit it.

Open the “.ps” file you created in Step 3 in Wordpad or Word (not Notepad) to edit it. A few lines down in the file, you will find four variables that define the size of the bounding box: /EPS_DX, /EPS_DY, /EPS_ORIGIN_X, and /EPS_ORIGIN_Y. Using the bounding box values from step 2, change the values in these variables as follows and then save the file:

/EPS_DX = X extent - X origin

/EPS_DY = Y extent - Y origin

/EPS_ORIGIN_X = X origin

/EPS_ORIGIN_Y = Y origin

For example, if the bounding box values from step 2 were 50 25 600 800, after editing these four lines in your “.ps” file should read:

/EPS_DX 550 def

/EPS_DY 775 def

/EPS_ORIGIN_X 50 def

/EPS_ORIGIN_Y 25 def

Enter these values so your logo will always retain its original aspect ratio (height to width) no matter how you size it in ER Mapper.

Step 5


Create a TIFF thumbnail “preview” image for the logo.

Create a small version (thumbnail) of your logo to appear as the preview in the Map Object Select dialog in ER Mapper’s Map Composition. Size the image to 64 by 64 pixels and save it as a 24-bit (RGB) uncompressed TIFF image. You may need a program such as Photoshop or Paintshop Pro (or ER Mapper) to do this. Name the TIFF image the same base name as your EPS and PS files (such as “My_Logo.tif”), and place it in ER Mapper’s legendrules/Logo directory.

Note: If your original image is not RGB, convert it to RGB before saving as TIFF. TIFF files with fewer colors (256, 16, etc.) will not display correctly as a thumbnail image inside ERMapper.

Step 6


Create a legend definition file for your logo.

The legend definition (“.ldd”) file assigns the name for the logo inside ER Mapper, and specifies the names of the PS and EPS files created earlier. Copy an existing “.ldd” file legendrules/Logo directory and give it the name you wish to use in ER Mapper. (This name should match the names used for the EPS, PS and TIF files you made earlier, such as “My_Logo.ldd.”)

Edit the “.ldd” file in a text editor to specify the default size of the logo, and names of the .eps and .ps files you created. Parts of the LDD file you need to edit are shown below:

• Edit the width and height hint values to match the aspect ratio (ratio of width to height) of your logo. For example, if you logo is 150 pixels wide by 100 pixels high, then an appropriate default might be:

WidthHint = 0.3

HeightHint = 0.2

(If your logo appears by default with empty areas on the sides in the background color, this means your values above do not match the logo’s aspect ratio. The aspect ratio of the logo EPS image is fixed, so if you give the bounding box a different shape than the logo in map composition, empty areas will be filled with the background color specified in the LDD file.)

• Edit the File sections to specify the names of the PS and EPS files you created earlier in the legendps/Logo directory:

PS ExecIncludeFiles Begin

File = "Logo/My_Logo.ps"

File = "Logo/My_Logo.eps"

File = "reset.ps"

PS ExecIncludeFiles End



Now when you start up ER Mapper and get into Map Composition, your logo will appear as a new map item under Logos in the Map Object Select dialog box. You can use these steps to add symbols such as stars, highway signs, or other common map objects.



Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azrefs.org 2016
rəhbərliyinə müraciət

    Ana səhifə