src/AircraftTrajectories/Models/Visualisation/LegendCreator.cs
/// <summary>
/// Creates the gradient layering in the legend image
/// </summary>
/// <param name="bmp"></param>
Creates the gradient layering in the legend image
Creates the gradient layering in the legend image
public void GenerateGradient(Bitmap bmp) {
            using (Graphics graphics = Graphics.FromImage(bmp))
            using (LinearGradientBrush brush = new LinearGradientBrush(
                new Rectangle(0, 0, 55, 320), c1, c2, LinearGradientMode.Vertical)
            )
            {
                graphics.FillRectangle(brush, new Rectangle(0, 0, 55, 320));
            }
        }
public void GenerateGradient ( Bitmap bmp ) { using ( Graphics graphics = Graphics . FromImage ( bmp ) ) using ( LinearGradientBrush brush = new LinearGradientBrush ( new Rectangle ( 0 , 0 , 55 , 320 ) , c1 , c2 , LinearGradientMode . Vertical ) ) { graphics . FillRectangle ( brush , new Rectangle ( 0 , 0 , 55 , 320 ) ) ; } }
Creates the gradient layering in the legend image
Creates the gradient layering in the legend image
bmp
Bitmap
None