c# not working in zennoposter

archel

Client
Регистрация
02.05.2011
Сообщения
175
Благодарностей
22
Баллы
18
Hi

The following code works in projectmaker, but not in zennoposter:
Код:
Bitmap screen = new Bitmap(@"{-Project.Directory-}test-fullscreen.png");
int width= screen.Width;
Rectangle cloneRect = new Rectangle(0, 0, width, 1000);
System.Drawing.Imaging.PixelFormat format = screen.PixelFormat;
Bitmap clonescreen = screen.Clone(cloneRect, format);
clonescreen.Save(@"{-Project.Directory-}test-1000.png");
It takes an image and crops it in height.

Is this a known bug in the earlier versions of zenno (still use 5.0.3.1) or could there be another reason?
The log in zenno says "invalid parameter"
 

LexxWork

Client
Регистрация
31.10.2013
Сообщения
1 190
Благодарностей
786
Баллы
113
instead of @"{-Project.Directory-} use project.Directory+"\\
 
  • Спасибо
Реакции: archel

archel

Client
Регистрация
02.05.2011
Сообщения
175
Благодарностей
22
Баллы
18
Great. Thanks!
 

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