I have added the C# code for converting images.

application-system

Новичок
Регистрация
18.04.2014
Сообщения
11
Благодарностей
0
Баллы
1
Hello, I have added the code for converting images in C#:

Код:
string imagePath = project.GlobalVariables["GlobalData","Image"].Value;
Bitmap tempBmp = new Bitmap(imagePath);
Bitmap bmp = new Bitmap(tempBmp, 120, 120);
bmp.Save( project.Directory + @"\..\temp\site.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
bmp.Dispose();
I run a project in project maker and it worked fine, but when I run it in ZennoPoter I get the following error in log:

Код:
error cs0518 predefined type 'microsoft.csharp.runtimebinder' is not defined or imported
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)