private void MergeButton_Click(object sender, EventArgs e) { if (CanvasTarget == null || textBox == null) { return; } using (var bmp = new Bitmap(textBox.Width, textBox.Height, PixelFormat.Format32bppPArgb)) { textBox.DrawToBitmap(bmp, new Rectangle(0, 0, textBox.Width, textBox.Height)); CanvasTarget.CrossLoadImage(SystemImage.ToRaw(bmp), Left + textBox.Left, Top + textBox.Top, textBox.Size); } Visible = false; }
/// <summary> /// Simple method wrapper to help with displaying system images /// </summary> /// <param name="systemImage"></param> /// <param name="layer"></param> public void ShowSystemImage(SystemImage systemImage, string layer) { _misty.DisplayImage($"e_{systemImage.ToString()}.jpg", layer, false, null); }
/// <summary> /// Simple method wrapper to help with calling display system images /// </summary> public void ShowSystemImage(SystemImage systemImage, double alpha) { _misty.DisplayImage($"e_{systemImage.ToString()}.jpg", null, false, null); }