i found code in this forum to make screenshots with d3d engine,
thank u very much for that !
is it possible to return the rgb values and x,y, coordinates from the captured image (in an array?), before saving as image.
this is the code :
Code: Select all
If d3d\CreateDevice(#D3DADAPTER_DEFAULT, #D3DDEVTYPE_HAL, hWnd, #D3DCREATE_SOFTWARE_VERTEXPROCESSING , @d3dpp, @d3dDevice.IDirect3DDevice8) = #D3D_OK
If d3dDevice\CreateImageSurface(ddm\Width, ddm\Height, #D3DFMT_A8R8G8B8, @surface.IDirect3DSurface8) = #D3D_OK
If d3dDevice\GetFrontBuffer(surface) = #D3D_OK
;-
If D3DXSaveSurfaceToFileA("c:\filename.bmp", #D3DXIFF_BMP, surface, #Null, #Null) = #D3D_OK
Debug "screenshot saved!"
;-
EndIf
EndIf
EndIf
EndIf

