private void FillRectangles() { // Fill rect1 with "Spring" colormap: Library.ColormapBrush brush = new Library.ColormapBrush(); rect1.Fill = brush.Spring(); // Fill rect2 with "Summer" colormap: brush = new Library.ColormapBrush(); rect2.Fill = brush.Summer(); // Fill rect3 with "Autumn" colormap: brush = new Library.ColormapBrush(); rect3.Fill = brush.Autumn(); // Fill rect4 with "Winter" colormap: brush = new Library.ColormapBrush(); rect4.Fill = brush.Winter(); // Fill rect5 with "Jet" colormap: brush = new Library.ColormapBrush(); rect5.Fill = brush.Jet(); // Fill rect6 with "Gray" colormap: brush = new Library.ColormapBrush(); rect6.Fill = brush.Gray(); // Fill rect7 with "Hot" colormap: brush = new Library.ColormapBrush(); rect7.Fill = brush.Hot(); // Fill rect8 with "Cool" colormap: brush = new Library.ColormapBrush(); rect8.Fill = brush.Cool(); }