1
I am developing a method to add a purple stripe to the images that are processed in my application. I’m using c# to draw in the image, currently I do so:
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 band):
Until then beauty, the problem is, the track is superimposing the image, I need it to increase the height. For example, the image has 450px x x 450px need to get 450px x x 500px or I will not be cutting a part of the photo. There is a way instead of about incrementing the height of the photo?
I had solved basically the same ! Thanks +1
– Leonardo Bonetti
Isn’t it purple? kkkkkkkkkkk is pink? hahaha
– Leonardo Bonetti
not kkkk... ta more like red... purple is the image of my profile =] vlww
– Rovann Linhalis