本文整理汇总了C#中CardMaker.XML.ProjectLayoutElement.GetElementOutlineColor方法的典型用法代码示例。如果您正苦于以下问题:C# ProjectLayoutElement.GetElementOutlineColor方法的具体用法?C# ProjectLayoutElement.GetElementOutlineColor怎么用?C# ProjectLayoutElement.GetElementOutlineColor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CardMaker.XML.ProjectLayoutElement
的用法示例。
在下文中一共展示了ProjectLayoutElement.GetElementOutlineColor方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: UpdatePanelColors
private void UpdatePanelColors(ProjectLayoutElement zElement)
{
if (zElement != ElementManager.Instance.GetSelectedElement())
{
return;
}
panelBorderColor.BackColor = zElement.GetElementBorderColor();
panelOutlineColor.BackColor = zElement.GetElementOutlineColor();
panelShapeColor.BackColor = zElement.GetElementColor();
panelFontColor.BackColor = panelShapeColor.BackColor;
}
示例2: DrawOutline
public static void DrawOutline(ProjectLayoutElement zElement, Graphics zGraphics, GraphicsPath zPath)
{
// draw the outline
if (0 < zElement.outlinethickness)
{
var outlinePen = new Pen(Color.FromArgb(zElement.opacity, zElement.GetElementOutlineColor()),
zElement.outlinethickness)
{
LineJoin = LineJoin.Round
};
#warning This outline pen linejoin should be customizable (as it rounds the corners but corrects other issues!)
zGraphics.DrawPath(outlinePen, zPath);
}
}
示例3: DrawOutline
public static void DrawOutline(ProjectLayoutElement zElement, Graphics zGraphics, GraphicsPath zPath)
{
// draw the outline
if (0 < zElement.outlinethickness)
{
var outlinePen = new Pen(Color.FromArgb(zElement.opacity, zElement.GetElementOutlineColor()), zElement.outlinethickness);
zGraphics.DrawPath(outlinePen, zPath);
}
}
示例4: UpdatePanelColors
private void UpdatePanelColors(ProjectLayoutElement zElement)
{
if (zElement != MDILayoutControl.Instance.GetSelectedLayoutElement()) return;
panelBorderColor.BackColor = zElement.GetElementBorderColor();
panelOutlineColor.BackColor = zElement.GetElementOutlineColor();
panelShapeColor.BackColor = zElement.GetElementColor();
panelFontColor.BackColor = panelShapeColor.BackColor;
}