2024年2月25日发(作者:)
G0 =selected_Color.G; A0 =selected_Color.A;
Rectangle rect = newRectangle(0, 0, - 1, - 1); LinearGradientBrush lgBrush = newLinearGradientBrush(rect, arent, arent,al);
float[] pos = newfloat[4]; pos[0] = 0.0F;pos[1] = 0.3F; pos[2] = 0.35F; pos[3] = 1.0F;
Color[] colors = newColor[4];
colors[0] =GetColor(0, 0, 50, 100); colors[1] =GetColor(0, 0, 0, 30); colors[2] = gb(A0, R0, G0, B0); colors[3] =GetColor(0, 0, 50, 100);
ColorBlend mix = newColorBlend(); =colors; ons =pos; olationColors = mix;
ctangle(lgBrush, rect);
e(); rect = newRectangle(newPoint(1, 1), newSize( - 2, / 3- 2)); ctangle(newSolidBrush(gb(100, 255, 255, 255)),rect); Pen LinesPen = newPen(board_Color); Point[] LinePoint = { newPoint(0, 2), newPoint( - 1, 2), newPoint( - 1, - 3), newPoint(0, - 3), newPoint(0, 2)};
nes(LinesPen, LinePoint);
e(); } if (d) { Pen LinesPen = newPen(board_Color,0.9F);//FromArgb(197, 228, 253)); Point[] LinePoint = { newPoint(0, 2), newPoint( - 1, 2), newPoint( - 1, - 3), newPoint(0, - 3), newPoint(0, 2)}; nes(LinesPen, LinePoint); e(); } } //渲染下拉项 elseif (tsType isToolStripDropDown) { ingMode = ality;
LinearGradientBrush lgbrush = newLinearGradientBrush(newPoint(0, 0), newPoint(, ),gb(250, selected_Color),gb(0, )); if (ed) { GraphicsPath gp = GetRoundedRectPath(newRectangle(0, 0, , ), 10); // th(lgbrush, gp); R0 =selected_Color.R; B0 =selected_Color.B; G0 = selected_Color.G; A0 =selected_Color.A; Rectangle rect = newRectangle(0, 0, - 1, - 1); LinearGradientBrush lgBrush = newLinearGradientBrush(rect, arent, arent,al);
float[] pos = newfloat[4]; pos[0] = 0.0F;pos[1] = 0.3F; pos[2] = 0.35F; pos[3] = 1.0F; Color[] colors = newColor[4]; colors[0] =GetColor(0, 0, 50, 100); colors[1] =GetColor(0, 0, 0, 30); colors[2] = gb(A0, R0, G0, B0); colors[3] =GetColor(0, 0, 50, 100); ColorBlend mix = newColorBlend(); =colors; ons =pos; olationColors = mix; ctangle(lgBrush, rect); e(); rect = newRectangle(newPoint(1, 1), newSize( - 2, / 3 - 2)); ctangle(newSolidBrush(gb(100, 255, 255, 255)),rect); Pen LinesPen = newPen(board_Color); Point[] LinePoint = { newPoint(0, 2), newPoint( - 1, 2), newPoint( - 1, - 3), newPoint(0, - 3), newPoint(0, 2)};
nes(LinesPen, LinePoint); e(); } } else { //erMenuItemBackground(e); } }
继承OnRenderSeparator函数以便得到Separator的特定效果
发布评论