Commit 79dcb1b0 authored by mercury233's avatar mercury233

some pendulum

parent 19d72442
......@@ -177,6 +177,12 @@ namespace ImgGen
else
{
graphics.FillRectangle(pendBgBrush, new Rectangle(23, 362, 354, 189));
if(image.Width == image.Height)
{
graphics.DrawImage(image, new Rectangle(27, 103, 347, 330), new Rectangle(0, 0, image.Width, (int)(image.Height * (330f / 347f))), GraphicsUnit.Pixel);
}
else
{
Rectangle dest = new Rectangle(27, 103, 347, 259);
if (image.Width == 407 && image.Height >= 593) // 官网图
graphics.DrawImage(image, dest, new Rectangle(27, 106, 353, 263), GraphicsUnit.Pixel);
......@@ -184,6 +190,7 @@ namespace ImgGen
graphics.DrawImage(image, dest);
}
}
}
else
{
Rectangle dest = new Rectangle(48, 106, 304, 304);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment