Пример #1
0
 var(a2, s2, w2) = f(a1).Run(e, s1);
Пример #2
0
		private static void A(s1 s)
		{
			bool flag = true;
			Rectangle rectangle2;
			bool flag2;
			bool flag3;
			using (a2 a = new a2())
			{
				Rectangle rectangle = s.G(flag);
				float num = 1.5f;
				a.A(new Size((int)((float)rectangle.Width * num), (int)((float)rectangle.Height * num)));
				a.A(false);
				if (a.ShowDialog() != DialogResult.OK)
				{
					return;
				}
				rectangle2 = new Rectangle(0, 0, a.A().Width, a.A().Height);
				flag2 = a.A();
				flag3 = a.a();
			}
			object[][] array = new object[][]
			{
				new object[]
				{
					ImageFormat.Png,
					"Portable Network Graphics (*.png)",
					"*.png"
				},
				new object[]
				{
					ImageFormat.Bmp,
					"Bitmap (*.bmp)",
					"*.bmp"
				},
				new object[]
				{
					ImageFormat.Tiff,
					"Tag Image File (*.tif)",
					"*.tif"
				},
				new object[]
				{
					ImageFormat.Jpeg,
					"Joint Photographic Experts Group (*.jpg)",
					"*.jpg"
				}
			};
			if (flag2)
			{
				array = new object[][]
				{
					array[0],
					array[2]
				};
			}
			string text = "";
			object[][] array2 = array;
			for (int i = 0; i < array2.Length; i++)
			{
				object[] array3 = array2[i];
				if (text.Length > 0)
				{
					text += "|";
				}
				object obj = text;
				text = string.Concat(new object[]
				{
					obj,
					"",
					array3[1],
					"|",
					array3[2]
				});
			}
			int num2 = 0;
			string text2 = y1.A(s.A().b(), 64);
			using (SaveFileDialog saveFileDialog = new SaveFileDialog())
			{
				saveFileDialog.Filter = text;
				saveFileDialog.FilterIndex = num2 + 1;
				saveFileDialog.RestoreDirectory = true;
				saveFileDialog.InitialDirectory = K1.A().A().RecentPicturePath;
				saveFileDialog.FileName = text2;
				if (saveFileDialog.ShowDialog() == DialogResult.OK)
				{
					num2 = saveFileDialog.FilterIndex - 1;
					text2 = saveFileDialog.FileName;
					K1.A().A().RecentPicturePath = Path.GetDirectoryName(saveFileDialog.FileName);
				}
			}
			Bitmap bitmap = new Bitmap(rectangle2.Width, rectangle2.Height);
			Color white = Color.White;
			Graphics graphics = Graphics.FromImage(bitmap);
			if (!flag2)
			{
				graphics.FillRectangle(new SolidBrush(white), graphics.ClipBounds);
			}
			B1 b = s.A().G(s, graphics, a1.Picture, flag2);
			s.H(rectangle2, 0f, b);
			bitmap.Save(text2, (ImageFormat)array[num2][0]);
			if (flag3)
			{
				try
				{
					Process.Start(text2);
				}
				catch (Exception)
				{
				}
			}
		}