From af31c6a8c66aa316adeb9af780df043b879d671f Mon Sep 17 00:00:00 2001 From: ByteBlast Date: Tue, 14 Oct 2014 20:45:42 +0100 Subject: [PATCH] Readability tweak. --- Source/Ember/Forms/MainForm.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Ember/Forms/MainForm.cs b/Source/Ember/Forms/MainForm.cs index 393eaa6..155012f 100644 --- a/Source/Ember/Forms/MainForm.cs +++ b/Source/Ember/Forms/MainForm.cs @@ -65,7 +65,7 @@ private static async void Capture(Rectangle area) if (Settings.Default.UploadImage) { - var screenshotBinary = ToByteArray(screenshot, Settings.Default.UploadFormat); + var screenshotBinary = ConvertToByteArray(screenshot, Settings.Default.UploadFormat); using (var client = new ImgurClient()) { @@ -100,7 +100,7 @@ private static async void Capture(Rectangle area) } } - public static byte[] ToByteArray(Image image, ImageFormat format) + public static byte[] ConvertToByteArray(Image image, ImageFormat format) { using (var memoryStream = new MemoryStream()) {