I'm developing a method for adding a purple stripe to images that are rendered in my application. I'm using C # to draw in the image, currently I do this:
using (Image image = Image.FromFile(originalFilePath))
{
Graphics imageGraphics = Graphics.FromImage(image);
Rectangle FooterRectangle = new Rectangle(0, image.Height - 50, image.Width, 50); // image.height = 450px image.width = 450px
SolidBrush footerBrush = new SolidBrush(Color.FromArgb(189, 5, 59));
imageGraphics.FillRectangle(footerBrush, FooterRectangle);
}
The result is this (Ignore watermark and text, focus on purple):
Until then beauty, the problem is, the track is overlapping the image, I need it to increase the height. For example, the image has 450px x 450px I need it to stay 450px x 500px ie I will not be cutting a part of the photo. Is there a way to instead of incrementing in the height of the photo?