diff --git a/PCK-Studio/Extensions/ImageExtensions.cs b/PCK-Studio/Extensions/ImageExtensions.cs index c5f15c0c..b45485ff 100644 --- a/PCK-Studio/Extensions/ImageExtensions.cs +++ b/PCK-Studio/Extensions/ImageExtensions.cs @@ -125,12 +125,12 @@ private static Size CalculateImageSize(IList sources, ImageLayoutDirectio return new Size(width, height); } - internal static Image ResizeImage(this Image image, Size size, GraphicsConfig graphicsConfig) + internal static Image Resize(this Image image, Size size, GraphicsConfig graphicsConfig) { - return image.ResizeImage(size.Width, size.Height, graphicsConfig); + return image.Resize(size.Width, size.Height, graphicsConfig); } - internal static Image ResizeImage(this Image image, int width, int height, GraphicsConfig graphicsConfig) + internal static Image Resize(this Image image, int width, int height, GraphicsConfig graphicsConfig) { var destRect = new Rectangle(0, 0, width, height); var destImage = new Bitmap(width, height); diff --git a/PCK-Studio/Forms/Editor/TextureAtlasEditor.cs b/PCK-Studio/Forms/Editor/TextureAtlasEditor.cs index 60c73ead..f3879aef 100644 --- a/PCK-Studio/Forms/Editor/TextureAtlasEditor.cs +++ b/PCK-Studio/Forms/Editor/TextureAtlasEditor.cs @@ -265,7 +265,7 @@ private void SetTile(Image texture) PixelOffsetMode = PixelOffsetMode.HighQuality }; if (texture.Size != _areaSize) - texture = texture.ResizeImage(_areaSize, graphicsConfig); + texture = texture.Resize(_areaSize, graphicsConfig); using (var g = Graphics.FromImage(originalPictureBox.Image)) { g.ApplyConfig(graphicsConfig); @@ -348,7 +348,6 @@ protected override bool ProcessDialogKey(Keys keyData) } return false; - // return base.ProcessDialogKey(keyData); } } } \ No newline at end of file diff --git a/PCK-Studio/Forms/Utilities/pckCenterOpen.cs b/PCK-Studio/Forms/Utilities/pckCenterOpen.cs index 5325c0f7..b7cc5c11 100644 --- a/PCK-Studio/Forms/Utilities/pckCenterOpen.cs +++ b/PCK-Studio/Forms/Utilities/pckCenterOpen.cs @@ -1034,15 +1034,15 @@ private void convertToBedrockToolStripMenuItem_Click(object sender, EventArgs e) if (saveSkin.Width == saveSkin.Height) { - saveSkin.ResizeImage(64, 64, config); + saveSkin.Resize(64, 64, config); } else if (saveSkin.Height == saveSkin.Width / 2) { - saveSkin.ResizeImage(64, 32, config); + saveSkin.Resize(64, 32, config); } else { - saveSkin.ResizeImage(64, 64, config); + saveSkin.Resize(64, 64, config); } saveSkin.Save(root + "/" + skinTexture.Filename, ImageFormat.Png); }