This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
map_suite_style_guide [2016/10/06 21:51] benbai [PointStyle] |
map_suite_style_guide [2017/03/17 02:08] (current) tgwikiupdate |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Map Suite Style Guide ====== | ====== Map Suite Style Guide ====== | ||
+ | {{section>upgrade_map_suite_to_10.0}} | ||
+ | |||
<div msgbox> | <div msgbox> | ||
This guide is a work in progress. If you have suggestion or comment please use the discussion tab on this page. | This guide is a work in progress. If you have suggestion or comment please use the discussion tab on this page. | ||
Line 303: | Line 305: | ||
===== Predefined Styles ===== | ===== Predefined Styles ===== | ||
+ | [[map_suite_predefined_styles|Map Suite Predefined Style Guide]] | ||
===== Simple Styles ===== | ===== Simple Styles ===== | ||
==== AreaStyle ==== | ==== AreaStyle ==== | ||
==== LineStyle ==== | ==== LineStyle ==== | ||
- | ==== PointStyle ==== | ||
- | |||
- | === WellPointStyle === | ||
- | |||
- | Map Suite integrates 186 well points styles in the component. Here the following code will print out each of those style to a standalone bitmap. | ||
- | |||
- | for (int i = 1; i <= 186; i++) | ||
- | { | ||
- | WellPointStyle pointStyle = new WellPointStyle(i, GeoBrushes.Black, GeoPens.Black, 30); | ||
- | Bitmap bitmap = new Bitmap(128, 128); | ||
- | GdiPlusGeoCanvas gdiPlusGeoCanvas = new GdiPlusGeoCanvas(); | ||
- | gdiPlusGeoCanvas.BeginDrawing(bitmap, new RectangleShape(-180, 90, 180, -90), GeographyUnit.DecimalDegree); | ||
- | pointStyle.DrawSample(gdiPlusGeoCanvas); | ||
- | gdiPlusGeoCanvas.EndDrawing(); | ||
- | bitmap.Save(@"C:\WellStyles\Number_" + i.ToString() + ".png", ImageFormat.Png); | ||
- | } | ||
- | | ||
- | | ||
==== TextStyle ==== | ==== TextStyle ==== | ||
Line 375: | Line 360: | ||
</div> | </div> | ||
- | |||