duanqs 发表于 2015-2-20 12:29:51

Func _GDIPlus_BitmapCreateFromScan0($iWidth, $iHeight, $iStride = 0, $iPixelFormat = 0x0026200A, $pScan0 = 0)
    Local $aResult = DllCall($ghGDIPDll, "uint", "GdipCreateBitmapFromScan0", "int", $iWidth, "int", $iHeight, "int", $iStride, "int", $iPixelFormat, "ptr", $pScan0, "int*", 0)
    If @error Then Return SetError(@error, @extended, 0)
    Return $aResult
EndFunc   ;==>_GDIPlus_BitmapCreateFromScan0Func _GDIPlus_BitmapCreateFromScan0($iWidth, $iHeight, $iStride = 0, $iPixelFormat = 0x0026200A, $pScan0 = 0)
    Local $aResult = DllCall($ghGDIPDll, "uint", "GdipCreateBitmapFromScan0", "int", $iWidth, "int", $iHeight, "int", $iStride, "int", $iPixelFormat, "ptr", $pScan0, "int*", 0)
    If @error Then Return SetError(@error, @extended, 0)
    Return $aResult
EndFunc   ;==>_GDIPlus_BitmapCreateFromScan0

duanqs 发表于 2015-2-20 12:34:50

Func _GDIPlus_BitmapCreateFromScan0($iWidth, $iHeight, $iStride = 0, $iPixelFormat = 0x0026200A, $pScan0 = 0)
    Local $aResult = DllCall($ghGDIPDll, "uint", "GdipCreateBitmapFromScan0", "int", $iWidth, "int", $iHeight, "int", $iStride, "int", $iPixelFormat, "ptr", $pScan0, "int*", 0)
    If @error Then Return SetError(@error, @extended, 0)
    Return $aResult
EndFunc   ;==>_GDIPlus_BitmapCreateFromScan0

veket_linux 发表于 2015-2-20 15:55:24

本帖最后由 veket_linux 于 2015-2-20 15:59 编辑

MsgBox(0, "高亮测试", "")


$s = 'MsgBox(0, "高亮测试", "")'
MsgBox(0, "", $s);
页: 1 [2]
查看完整版本: [已解决]请教如何把一张图片像转换成16色的bmp