本帖最后由 1007236046 于 2013-10-5 22:35 编辑
在GDIPlus.au3中,有_GDIPlus_ImageGetVerticalResolution和_GDIPlus_ImageGetHorizontalResolution可以获取图片的dpi,但是没有找到设置dpi的函数
#include <ScreenCapture.au3>
_GDIPlus_Startup()
$hBitmap = _ScreenCapture_Capture("")
$hImage = _GDIPlus_BitmapCreateFromHBITMAP($hBitmap)
MsgBox(0,_GDIPlus_ImageGetVerticalResolution($hImage),_GDIPlus_ImageGetHorizontalResolution($hImage))
;_GDIPlus_ImageSaveToFile($hImage,@ScriptDir & "\jietu123.jpg") ;保存截图
_GDIPlus_ImageDispose($hImage)
_WinAPI_DeleteObject($hBitmap)
_GDIPlus_Shutdown()
|