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; }
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); } }
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); } }
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; }