|
TalMap SDK Libary Reference |
XPOIStyle::SetBrush |
Brush¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
|
|
|
Parameters
|
BrushColor |
»ö±ò (XUtility.RGBColor, XUtility.RGBAColor) |
Style |
½ºÅ¸ÀÏ (default : 0)
XUtility.GetConstToValue(string Value)
BS_SOLID | BS_SOLID ¿¡ ´ëÇÑ ¹®ÀÚ¿ |
BS_NULL | BS_NULL ¿¡ ´ëÇÑ ¹®ÀÚ¿ |
|
|
|
|
|
Return Value
|
|
Remarks
|
SetBrush ´Â XPOIStyle ÀÇ Method·Î Á¦°øµË´Ï´Ù.
»ç¿ëÀÚ´Â ÀÌ ¸Þ¼Òµå¸¦ ÀÌ¿ëÇÏ¿© Brush¸¦ ¼³Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.
|
|
|
|
Example
|
|
var ctrlman = m_Map.GetCtrlMan();
var poiman = ctrlman.GetPOIMan();
var imageman = ctrlman.GetImageMan();
var util = m_Map.GetUtility();
var ctrlstate = ctrlman.GetControlState();
var posLL = ctrlstate.GetLLCenter(); // ÁöµµÀÇ Á᫐ ÁÂÇ¥
// step1. POI group »ý¼º
var group = poiman.FindGroup(1);
if (!group)
group = poiman.NewGroup(1);
// step2. Style »ý¼º
var style = poiman.FindStyle(1);
if (!style)
{
style = poiman.NewStyle(1);
style.SetGDIFont("±¼¸²", 0, 8);
style.SetFontColor(util.RGBColor(255, 0, 0));
style.SetBrush(util.RGBColor(100, 0, 255), 0);
style.SetPen(util.RGBColor(0, 0, 0), 1, util.GetConstToValue("PS_SOLID"));
}
// step3. group ¿¡ ½ºÅ¸ÀÏ Àû¿ë
group.SetStyle(style);
imageman.SetDefaultPath("http://www.talmap.co.kr/tutorial/");
var poiImage = imageman.LoadImageList("CAR_IMAGE", "image/CAR.png", 64, 64);
// step4. POI Item »ý¼º
var item = group.NewItem(-1); // ¾ÆÀ̵ð ÀÚµ¿ »ý¼º
item.SetLonLat(posLL._X+10, posLL._Y+10 );
item.SetImage(poiImage);
item.SetShowImage(1);
item.SetTextStyle(util.GetConstToValue("DRAWTEXT_STYLE_BOARDOUTLINE"));
item.SetStyle(style);
item.SetCaption("POI Test");
item.SetAngle(30);
item.SetImageOffset(0);
item.SetAlpha(100);
item.SetAnimation(200);
|
|
|
CXPOIMan poiman = ctrlman.GetPOIMan();
CXPOIGroup group = poiman.FindGroup(100);
if (group.m_lpDispatch == NULL)
group = poiman.NewGroup(100);
// Step3. POI Style À» »ý¼º ÇÕ´Ï´Ù.
CXPOIStyle style = poiman.FindStyle(1000);
if (style.m_lpDispatch == NULL) {
style = poiman.NewStyle(1000);
style.SetGDIFont(_T("±¼¸²"), 0, 8);
style.SetFontColor(util.RGBColor(255, 0, 0));
style.SetFontOutColor(util.RGBColor(255, 255, 255));
style.SetBrush(util.RGBColor(100, 0, 255), 0);
style.SetPen(util.RGBColor(0, 0, 0), 1, 0);
style.SetVisibleCtrl(1,1);
}
group.SetStyle(style);
|
|
|
|
See Also
|
|