Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/15/2012 in all areas

  1. It's because you do not dispose the image and is still in use. Try this: #include <GuiConstantsEx.au3> #include <WindowsConstants.au3> #Include <ScreenCapture.au3> #Include <Misc.au3> #include <StaticConstants.au3> Local $GUIimg_title,$GUIwidth,$GUIheight,$GUILeft,$GUITop Local $filename = FileOpenDialog("Select image", @ScriptDir, "Image (*.jpg;*.bmp)", 3) _GDIPlus_Startup() Local $imagefromfile = _GDIPlus_ImageLoadFromFile($filename) ;Create an image object based on a file Local $GUIwidth = _GDIPlus_ImageGetWidth($imagefromfile) Local $GUIheight = _GDIPlus_ImageGetHeight($imagefromfile) _GDIPlus_ImageDispose($imagefromfile) _GDIPlus_Shutdown() ; Display image $hBitmap_GUI = GUICreate("", $GUIwidth, $GUIheight) $hPic = GUICtrlCreatePic($filename, 0, 0, $GUIwidth, $GUIheight) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE;, $hCancel_Button Exit ;~ EndSwitch WEnd
    1 point
  2. HA! I get it now, I checked the working dorectry in my script and it was being changed by the fileopen dialog to the place where the file selected was located... this works. DllCall("test.dll", "none:cdecl", "CrashAutoIt") FileOpenDialog("Select a file please...", "", "Executable (*.exe)") FileChangeDir(@ScriptDir) DllCall("test.dll", "none:cdecl", "CrashAutoIt")
    1 point
  3. Try $Test = DllCall("test.dll", "none:cdecl", "CrashAutoIt", "ptr", DllStructGetPtr($Struc, 1))
    1 point
  4. Werty

    Au3Irrlicht 2.0

    Umm, no, I am actually extracting the height details from google earth by putting an overlay (black pic) onto the surface, at different heights (google only allows for every metre) and then I stack them using ImageMagick (automated by my script) at increased black levels (grayscales) which then outputs the grayscale image, the screenshot is only used as texture/detailmap. I have read many many threads on the subject and consider myself an expert on the subject as I have made what others havent, a "one click" google earth to grayscale heightmap program (my script), which isnt limited by what you can find of DEM's and similar, It can make heightmaps from anywhere in the world. the screenshot is only added candy. I made the script over a year ago put stopped developing it, as it was intended as a one-click google earth to CryEngine, but then CryTek released their CryEngine3 which required that people had to log-in to their server just to use their editor, many modders, myself included, got mad, so we boycottet the CryEngine3 and hence I havent developped it further. My script is one-click only and it spits out real heightdata, if you want a heightmap from somewhere where DEM's arent available, just ask me, and I'll get it for you in two minutes /brag
    1 point
  5. The thing is, you knew what you wanted, had a general Idea how to do it, and put a little effort in to accomplish it. That's a big deal around here these days, you done good. Keep it up.
    1 point
×
×
  • Create New...