Pixel einfärben, guis und bitmaps???

  • Kann ich pixel einfärben oder eine einfache animation (so ähnlich wie eine bitmap bei nem spiel) auf den desktop zeichnen??? ?(
    mfg
    @night@
    PS: Ich bin noch nen ziemlicher anfänger in autoit^^ Wenn jemand vielleicht dei GUI's funktionen erklären könnte wäre ich ihn sehr dankbar... ^^

  • Hier auch noch nen Beispiel Disco auf dem Desktop =)

    und einzelne Pixel kannst du mit der Funktion einfärben:

    [autoit]

    Func SetPixel ($handle, $x, $y, $color)
    $dc= DllCall ("user32.dll", "int", "GetDC", "hwnd", $handle)
    $setpixel= DllCall ("gdi32.dll", "long", "SetPixel", "long", $dc[0], "long", $x, "long", $y, "long", $color)
    $realesedc= DllCall ("user32.dll", "int", "ReleaseDC", "hwnd", 0, "int", $dc[0])
    EndFunc

    [/autoit]
  • Hier auch noch nen Beispiel Disco auf dem Desktop =)

    und einzelne Pixel kannst du mit der Funktion einfärben:

    [autoit]

    Func SetPixel ($handle, $x, $y, $color)
    $dc= DllCall ("user32.dll", "int", "GetDC", "hwnd", $handle)
    $setpixel= DllCall ("gdi32.dll", "long", "SetPixel", "long", $dc[0], "long", $x, "long", $y, "long", $color)
    $realesedc= DllCall ("user32.dll", "int", "ReleaseDC", "hwnd", 0, "int", $dc[0])
    EndFunc

    [/autoit]


    Könntest du bitte noch ein beispiel schreiben indem die pixel systematisch ihre farbe ändern???

  • [autoit]

    $handlee=ControlGetHandle ( "dsfsgjaiflslif", "", "" )

    [/autoit][autoit][/autoit][autoit]

    For $i=1 To 50 Step +1
    SetPixel ( $handlee, @DesktopWidth/2+$i, @DesktopHeight/2+$i, 0xFF0000 )
    Next

    [/autoit][autoit][/autoit][autoit]

    Func SetPixel ($handle, $x, $y, $color)
    $dc= DllCall ("user32.dll", "int", "GetDC", "hwnd", $handle)
    $setpixel= DllCall ("gdi32.dll", "long", "SetPixel", "long", $dc[0], "long", $x, "long", $y, "long", $color)
    $realesedc= DllCall ("user32.dll", "int", "ReleaseDC", "hwnd", 0, "int", $dc[0])
    EndFunc

    [/autoit]

    Nen Strich^^

  • wenn ich jetzt mit setpixel das ändere wie bekomme ich wieder einen normalen zustand?
    /edit ok verstanden