Jump to content

Armenxxx1

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Armenxxx1

  1. #include "AVIWriter.au3" #include <GDIPlus.au3> Global $count, $hBmp _StartAviLibrary() _GDIPlus_Startup() $hImage = _GDIPlus_ImageLoadFromFile(@DesktopDir & "\aaz\1.jpg") $Width = _GDIPlus_ImageGetWidth($hImage) $Height = _GDIPlus_ImageGetHeight($hImage) $avi = _CreateAvi(@DesktopDir & "\test.avi", 5, $Width, $Height) For $count = 1 to 100 $hImage = _GDIPlus_ImageLoadFromFile(@DesktopDir & "\aaz\" & $count & ".jpg") $hBmp = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImage) _AddHBitmapToAvi($avi, $hBmp) _WinAPI_DeleteObject($hBmp) Sleep(100) next _GDIPlus_ImageDispose($hImage) _WinAPI_DeleteObject($hBmp) _GDIPlus_Shutdown() _CloseAvi($avi) _StopAviLibrary() exit
×
×
  • Create New...