We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
書いてみたけど頭悪そう 🤔
// リサイズ処理 public Image Resize(Image image, int maxSide = 256) { var longSide = image.Height > image.Width ? image.Height : image.Width; if (longSide <= maxSide) return image; var resizedWidth = maxSide; var resizedHeight = maxSide; if (image.Height > image.Width) resizedWidth *= image.Width / image.Height; else resizedHeight *= image.Height / image.Width; var resized = new Bitmap(resizedWidth, resizedHeight); var graph = Graphics.FromImage(resized); graph.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic; graph.DrawImage(image, 0, 0, resized.Width, resized.Height); return resized; }
Sorry, something went wrong.
実装はさておいて、Image 系ってコード煩雑になりがちだから仕方ないのでは()
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: