c# not working in zennoposter

  • Автор темы Автор темы archel
  • Дата начала Дата начала

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"
 
instead of @"{-Project.Directory-} use project.Directory+"\\
 
  • Спасибо
Реакции: archel
Great. Thanks!
 

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