private void ArrangeSpecial(string bitmapResName, ImageLayout bitmapLayout, string tagLine, Color tagColor)
{
BackgroundImage = Resources.ResourceManager.GetBitmap(bitmapResName);
if (bitmapLayout == ImageLayout.None)
{
// Changing control size to the constant bitmap size here,
// we have to apply proportions factor based on system font scaling
float proportion = Utilities.CalculateGraphicsProportion(this);
Size = new Size((int)((float)BackgroundImage.Size.Width * proportion),
(int)((float)BackgroundImage.Size.Height * proportion));
BackgroundImageLayout = ImageLayout.Stretch;
}
else
{
BackgroundImageLayout = bitmapLayout;
}
lblBottomTagLine.Font = new Font("Tahoma", 9.75F, System.Drawing.FontStyle.Bold);
lblBottomTagLine.ForeColor = tagColor;
lblBottomTagLine.Text = tagLine;
lblBottomTagLine.TextAlign = ContentAlignment.MiddleRight;
}