Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
сфотографировать экран
|
|||
|---|---|---|---|
|
#18+
Есть задача, сфотографировать экран и сохранить фотку на диск, как это можно сделать? Если только через PInvoke, то какой метод ? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.12.2004, 12:04 |
|
||
|
сфотографировать экран
|
|||
|---|---|---|---|
|
#18+
Actually, there is a Save method on the Image class, and because Bitmap derives from Image, then the Save method should be on there. As for getting a screen shot, I think the best way to do this would be to use the GetDesktopWindow API function (through the P/Invoke layer). Once you have this, create a bitmap with the same dimensions and the color-depth that you want. Then, get the Graphics instance for the bitmap using the static FromImage method on the Graphics class. Finally, call the BitBlt API function to do a copy from the desktop to the bitmap (the handles can be retrieved from the Graphics instances). Hope this helps. -- - Nicholas Paldino [.NET/C# MVP] - nicholas.paldino@exisconsulting.com ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.12.2004, 13:20 |
|
||
|
|

start [/forum/topic.php?fid=20&msg=32841522&tid=1437584]: |
0ms |
get settings: |
10ms |
get forum list: |
17ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
55ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
52ms |
get tp. blocked users: |
1ms |
| others: | 266ms |
| total: | 421ms |

| 0 / 0 |
