private void CreateGraphicsRectangles(IGraphicsDisplay graphicsDisplay)
{
var graphicsRectangleProgressBarLeft = graphicsDisplay.SourceRectangleFromImageType(ImageType.SlowIcon);
var graphicsRectangleProgressBarRight = graphicsDisplay.SourceRectangleFromImageType(ImageType.SpeedIcon);
var yDiff = this.speedGaugeDefinition.Bounds.Height - graphicsRectangleProgressBarLeft.Height;
this.boundsLeftImage = new Rectangle(
this.speedGaugeDefinition.Bounds.X,
this.speedGaugeDefinition.Bounds.Y + yDiff / 2,
graphicsRectangleProgressBarLeft.Width,
this.speedGaugeDefinition.Bounds.Height - yDiff);
this.boundsRightImage = new Rectangle(
this.speedGaugeDefinition.Bounds.X + (this.speedGaugeDefinition.Bounds.Width - graphicsRectangleProgressBarRight.Width),
this.speedGaugeDefinition.Bounds.Y + yDiff / 2,
graphicsRectangleProgressBarRight.Width,
this.speedGaugeDefinition.Bounds.Height - yDiff);
this.boundsMiddleImage = new Rectangle(
this.speedGaugeDefinition.Bounds.X + this.boundsLeftImage.Width,
this.speedGaugeDefinition.Bounds.Y + yDiff / 2,
this.speedGaugeDefinition.Bounds.Width - (graphicsRectangleProgressBarRight.Width + graphicsRectangleProgressBarLeft.Width),
this.speedGaugeDefinition.Bounds.Height - yDiff);
}