morgan1991
19-02-2010, 22:43
Здравствуйте!
Вот пришла мысль в голову считать пиксель, получить его цвет вывести в GUI и так с каждым, чтобы получить изображение...
Но никак не получается.
Вот что я натворил:
#include <GUIConstants.au3>
GUICreate("My GUI Button") ; will create a dialog box that when displayed is centered
For $i = 0 To 50 Step +1
For $j = 0 To 10 Step +1
GUICtrlCreateGraphic($j, $i, 10, 10)
GUICtrlSetBkColor(-1, "0x" & Hex(PixelGetColor($i, $j), 6))
GUICtrlSetColor(-1, 0)
Next
Next
GUISetState () ; will display an dialog box with 2 button
; Run the GUI until the dialog is closed
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend
Помогите плиз, как вывести в окошке скриншот?
Вот пришла мысль в голову считать пиксель, получить его цвет вывести в GUI и так с каждым, чтобы получить изображение...
Но никак не получается.
Вот что я натворил:
#include <GUIConstants.au3>
GUICreate("My GUI Button") ; will create a dialog box that when displayed is centered
For $i = 0 To 50 Step +1
For $j = 0 To 10 Step +1
GUICtrlCreateGraphic($j, $i, 10, 10)
GUICtrlSetBkColor(-1, "0x" & Hex(PixelGetColor($i, $j), 6))
GUICtrlSetColor(-1, 0)
Next
Next
GUISetState () ; will display an dialog box with 2 button
; Run the GUI until the dialog is closed
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend
Помогите плиз, как вывести в окошке скриншот?