Farbverlauf
-
Hi Leute!
Ich habe da mal ne Frage.
Ist es möglich einen Farbverlauf über 2 Farben Horizontal und 2 Farben Vertikal gleichzeitig zu haben. Ich kenne nur die Version nur Horizontal oder nur Vertikal oder Diagonal aber das ist alles nicht das was ich haben will.
Hier noch kurz meine Version für horizontal:
Graphics g; Rectangle rc; LinearGradientBrush c = new LinearGradientBrush(rc, Color1, Color2, LinearGradientMode.Horizontal); Color[] EndColors = {Color1,Color2,Color3}; float[] ColorPositions = { 0.0f, 0.5f, 1f }; ColorBlend C_Blend = new ColorBlend(); C_Blend.Colors = EndColors; C_Blend.Positions = ColorPositions; c.InterpolationColors = C_Blend; g.FillRectangle(c, rc);
MfG
blind