Mapxtreme contains three vertex styles: bitmappointstyle (
Bitmap point style ), Fontpointstyle (
Font point style ) And simplevectorpointstyle (
Simple vector point style ).
Simple vector point style
This style contains the style attributes (mapinfow. fnt) that are used to draw points using the Mapinfo 3.0 compatible proprietary font ). The simplevectorpointstyle attribute includes the color, dot size, and shape code of the actual symbol to be drawn for the vertex. The standard set includes symbols 31 to 67. The following figure shows the correspondence between the symbol and the shape code, and 31 is empty. It is enough to use this style in simple cases, but it is not easy in many cases.
Structure:
Public Simplevectorpointstyle (
Short Code,
Color color,
Double Pointsize
);
CodeCorresponding shape code in the image above
ColorFill symbol color, black in the above picture
PointsizeSymbol size
Font point style
You can use the fontpointstyle class to display the TrueType font set. The maximum allowed vertex size is 240. This gives us a lot of free space. The MapInfo symbols font is the same as the above font, but MapInfo symbols is the TrueType character set. The built-in font of mapxtreme:
Map Symbols
MapInfo arrows
MapInfo cartographic
MapInfo Miscellaneous
MapInfo Oil & Gas
MapInfo Real Estate
MapInfo shields
MapInfo symbols
MapInfo Transportation
MapInfo weather
You can use some software to view the specific content of these fonts, such as the font fitting room and the character ing table that comes with Microsoft.
Public Fontpointstyle (
Short Code,
Font font,
Short Angle,
Color color,
Double Pointsize
);
CodeFont ing Encoding
FontFont style. It is critical that the font style is powerful.
AngleFont Rotation Angle
ColorFont fill color
PointsizeThe font size is about 12.
Bitmap point style
The bitmap vertex style should be the most likely style to be used. It identifies elements on the map through custom images. However, only 256 colors are allowed for custom images, rather than full colors. The bitmap vertex style has the showwhitebackground attribute. If it is set to false, the white pixels in the bitmap are transparent. By default, showwhitebackground is set to false .. In addition, the maximum number of images that can be included is 32,767.
Public Bitmappointstyle (
String Strname,
Bitmapstyles style,
Color color,
Double Pointsize
);
StrnameAdd a name to the relative path of the image. The root path of the image is X: \ Program Files \ common files \ MapInfo \ mapxtreme \ 6.0 \ webresources X. At the same time, the image is also placed there.
StyleThe image style.
- None: Display by default. And the white part will be transparent.
- Showwhitebackground: displays the white part.
- Applycolor: the transparency part of the identifier is filled with the color of the third parameter.
- Nativesize: display by the actual size and pixel of the logo. The fourth parameter will be invalid.
color fill color of the white part
pointsize ID size