找回密码
 加入
搜索
楼主: laomeng

[图形处理] AU3 能做圆形进度条吗 ?YOU朋友做过的 提个思路呗!!

 火..   [复制链接]
发表于 2014-12-22 12:31:55 | 显示全部楼层
这个不错,学习了
发表于 2014-12-22 17:04:27 | 显示全部楼层
支持支持,用GDI+或图标切换都可以
发表于 2015-1-4 01:22:14 | 显示全部楼层
看起来不错,配合多线程,貌似可以做好多事
发表于 2015-1-4 06:10:48 | 显示全部楼层
谢谢分享。。。。。。。。。。。。。。
发表于 2015-1-4 06:12:13 | 显示全部楼层
谢谢分享。。。。。。。。。。。。。。
 楼主| 发表于 2015-1-4 15:03:53 | 显示全部楼层
回复 3# netegg


    我找到这个 事例  但是不能运行。 我的autoit 版本是 3.3.9[img][/img]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2015-1-4 16:58:10 | 显示全部楼层
$IMAGE_BITMAP=0
发表于 2015-1-4 16:59:39 | 显示全部楼层
_GDIPlus_BitmapCreateFromMemory这个在gdiplusex里
发表于 2015-1-6 00:53:59 | 显示全部楼层
这个看起来不错,研究研究
发表于 2015-1-7 12:58:07 | 显示全部楼层
同样对圆形的进度条感兴趣 目前正在一直找这方面的例子做参考
发表于 2015-1-20 22:48:17 | 显示全部楼层
这个漂亮,学习下把我原来的进度条改进下
发表于 2015-1-23 10:48:16 | 显示全部楼层
这种实例太多了,官网搜搜一大把哈
发表于 2020-2-16 13:38:52 | 显示全部楼层
netegg 发表于 2014-12-17 11:05
exe帮助里的gdi示例里有,自己去找,我记不住是哪个了

找到了这个示例,贴上来方便大家
#include <GDIPlus.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

_GDIPlus_Startup()
Global Const $STM_SETIMAGE = 0x0172; $IMAGE_BITMAP=0
Global Const $iW = 300, $iH = 300
Global Const $hGUI = GUICreate("GDI+ Ring Progressbar", $iW, $iH, -1, -1, -1, $WS_EX_TOPMOST)
GUISetBkColor(0)
Global Const $iPic = GUICtrlCreatePic("", 0, 0, $iW, $iH)
;~ GUICtrlSetState(-1, $GUI_DISABLE)
GUISetState()

Global $hHBmp_BG, $hB, $fPerc, $iSleep = 60
GUIRegisterMsg($WM_TIMER, "PlayAnim")
DllCall("user32.dll", "int", "SetTimer", "hwnd", $hGUI, "int", 0, "int", $iSleep, "int", 0)

Do
        Switch GUIGetMsg()
                Case $GUI_EVENT_CLOSE
                        GUIRegisterMsg($WM_TIMER, "")
                        _WinAPI_DeleteObject($hHBmp_BG)
                        _GDIPlus_Shutdown()
                        GUIDelete()
                        Exit
        EndSwitch
Until False

Func PlayAnim()
        $hHBmp_BG = _GDIPlus_RingProgressbar($fPerc)
        $hB = GUICtrlSendMsg($iPic, $STM_SETIMAGE, $IMAGE_BITMAP, $hHBmp_BG)
        If $hB Then _WinAPI_DeleteObject($hB)
        _WinAPI_DeleteObject($hHBmp_BG)
        $fPerc += 0.33333
        If $fPerc > 100 Then $fPerc = 0
EndFunc   ;==>PlayAnim

Func _GDIPlus_RingProgressbar($fPerc, $iSize = 300, $sText = "Please wait...")
        Local Const $hBmp = _GDIPlus_BitmapCreateFromMemory(_Background_Texture())
        Local Const $hTexture = _GDIPlus_TextureCreate($hBmp)
        _GDIPlus_BitmapDispose($hBmp)
        Local Const $hBitmap = _GDIPlus_BitmapCreateFromScan0($iSize, $iSize)
        Local Const $hCtxt = _GDIPlus_ImageGetGraphicsContext($hBitmap)
        _GDIPlus_GraphicsSetPixelOffsetMode($hCtxt, 0)
        _GDIPlus_GraphicsSetSmoothingMode($hCtxt, 2)
        _GDIPlus_GraphicsFillRect($hCtxt, 0, 0, $iSize, $iSize, $hTexture)

        If $fPerc < 0 Then $fPerc = 0
        If $fPerc > 100 Then $fPerc = 100
        Local Const $hPath = _GDIPlus_PathCreate(), $hPath2 = _GDIPlus_PathCreate(), _
                                $fRadius = $iSize / 1.5, $iX = ($iSize - $fRadius) / 2, $iY = ($iSize - $fRadius) / 2, _
                                $fDX = $iSize / 10, $fAngel = $fPerc * 360 / 100, $fSize = $iSize / 5

        _GDIPlus_PathAddEllipse($hPath, $iX, $fDX + $iY, $fRadius, $fRadius)

        Local $aBlend[4][2] = [[3]]
        $aBlend[1][0] = 0x80A00000
        $aBlend[1][1] = 0 ;position = boundary
        $aBlend[2][0] = 0xD8FF0000
        $aBlend[2][1] = 0.15 ;distance boundary->center point
        $aBlend[3][0] = 0x04A00000
        $aBlend[3][1] = 1 ;center point

        Local Const $hBrush = _GDIPlus_PathBrushCreateFromPath($hPath)
        _GDIPlus_PathBrushSetPresetBlend($hBrush, $aBlend)
        Local Const $hPen = _GDIPlus_PenCreate2($hBrush, $fSize)
        _GDIPlus_GraphicsDrawPath($hCtxt, $hPath, $hPen)

        _GDIPlus_PathReset($hPath)

        Local Const $hPen2 = _GDIPlus_PenCreate2($hTexture, $fSize + 4)
        _GDIPlus_PathAddArc($hPath, $iX, $fDX + $iY, $fRadius, $fRadius, -90, $fAngel)
        _GDIPlus_GraphicsDrawPath($hCtxt, $hPath, $hPen2)


        $aBlend[1][0] = 0x20FFFFFF
        $aBlend[1][1] = 0 ;position = boundary
        $aBlend[2][0] = 0x50FFFFFF
        $aBlend[2][1] = 0.15 ;distance boundary->center point
        $aBlend[3][0] = 0x20FFFFFF
        $aBlend[3][1] = 1 ;center point
        _GDIPlus_PathBrushSetPresetBlend($hBrush, $aBlend)


        Local Const $hPen3 = _GDIPlus_PenCreate2($hBrush, $fSize)
        _GDIPlus_PathAddArc($hPath2, $iX, $fDX + $iY, $fRadius, $fRadius, -90, $fAngel)
        _GDIPlus_GraphicsDrawPath($hCtxt, $hPath2, $hPen3)

        _GDIPlus_PathReset($hPath)
        Local Const $hFamily = _GDIPlus_FontFamilyCreate("Verdana")
        Local Const $hFormat = _GDIPlus_StringFormatCreate()
        Local Const $tLayout = _GDIPlus_RectFCreate(0, $iSize / 12, $iSize, 0)
        Local Const $tLayout2 = _GDIPlus_RectFCreate(0, ($iSize + $iSize / 18) / 2, $iSize, 0)
        _GDIPlus_StringFormatSetAlign($hFormat, 1)

        Local Const $hBrush2 = _GDIPlus_BrushCreateSolid(0xE0FFFFFF)
        _GDIPlus_PenSetColor($hPen, 0x80000000)
        _GDIPlus_PenSetWidth($hPen, 4)
        _GDIPlus_PathAddString($hPath, $sText, $tLayout, $hFamily, 0, $iSize / 12, $hFormat)
        _GDIPlus_PathAddString($hPath, StringFormat("%02d%", $fPerc), $tLayout2, $hFamily, 0, $iSize / 9, $hFormat)

        _GDIPlus_GraphicsDrawPath($hCtxt, $hPath, $hPen)
        _GDIPlus_GraphicsFillPath($hCtxt, $hPath, $hBrush2)

        _GDIPlus_FontFamilyDispose($hFamily)
        _GDIPlus_StringFormatDispose($hFormat)
        _GDIPlus_PenDispose($hPen)
        _GDIPlus_PenDispose($hPen2)
        _GDIPlus_PenDispose($hPen3)
        _GDIPlus_BrushDispose($hBrush)
        _GDIPlus_BrushDispose($hBrush2)
        _GDIPlus_BrushDispose($hTexture)
        _GDIPlus_PathDispose($hPath)
        _GDIPlus_PathDispose($hPath2)
        _GDIPlus_GraphicsDispose($hCtxt)

        Local Const $hHBmp = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hBitmap)
        _GDIPlus_BitmapDispose($hBitmap)
        Return $hHBmp
EndFunc

;Code below was generated by: 'File to Base64 String' Code Generator v1.12 Build 2013-05-17

Func _Background_Texture($bSaveBinary = False, $sSavePath = @ScriptDir)
        Local $Background_Texture
        $Background_Texture &= '/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAUEBAUEAwUFBAUGBgUGCA4JCAcHCBEMDQoOFBEVFBMRExMWGB8bFhceFxMTGyUcHiAhIyMjFRomKSYiKR8iIyL/2wBDAQYGBggHCBAJCRAiFhMWIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiL/wgARCAFoAWgDASIAAhEBAxEB/8QAFwABAQEBAAAAAAAAAAAAAAAAAAECB//EABYBAQEBAAAAAAAAAAAAAAAAAAABAv/aAAwDAQACE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qL4XFfPD3BTd1uNlpOINbO1fUHZyNTXMEDcbbYT9QKKvLDGVTs4RrK8VjPiDhF8xcNhSOWXjdRpNygV0g0Z/ma7tcGOVr3CpeZQS7+5QrvD3HDl+Zk/3L3FucZhYN4e41eTJDLbvuFptw6l5ydxO0queeo5b/MKrKuYYCunME3lwwwxbX/uYtOx8TTC8xsjgthZkv3FLhYg0orS4zLTpKDamY/5cDPGnnxAyImu4jWq13GxqjHZF4X8iYC3Tsl7y2rp17lqeDw8xxb/AAQMmtdyimVn45nHe4FM+eZWC7jk4lW8biYXUSuNX3ALo3/uZRS0XFTYNwSs1cE8b3UsMK3EGzwxLyrW9RYbrcd8bi5++ai8PqZPzLVmoiEK3Loa5HHuDbZ9RtM1vqO8Vm4tjJuO8xhxx8kqgXHm/Crn/9k='
        Local $bString = Binary(_Base64Decode($Background_Texture))
        If $bSaveBinary Then
                Local $hFile = FileOpen($sSavePath & "\Dark Texture 300x300.jpg", 18)
                FileWrite($hFile, $bString)
                FileClose($hFile)
        EndIf
        Return  $bString
EndFunc   ;==>_Background_Texture

Func _Base64Decode($input_string)
        Local $struct = DllStructCreate('int')
        Local $a_Call = DllCall('Crypt32.dll', 'int', 'CryptStringToBinary', 'str', $input_string, 'int', 0, 'int', 1, 'ptr', 0, 'ptr', DllStructGetPtr($struct, 1), 'ptr', 0, 'ptr', 0)
        If @error Or Not $a_Call[0] Then Return SetError(1, 0, '')
        Local $a = DllStructCreate('byte[' & DllStructGetData($struct, 1) & ']')
        $a_Call = DllCall('Crypt32.dll', 'int', 'CryptStringToBinary', 'str', $input_string, 'int', 0, 'int', 1, 'ptr', DllStructGetPtr($a), 'ptr', DllStructGetPtr($struct, 1), 'ptr', 0, 'ptr', 0)
        If @error Or Not $a_Call[0] Then Return SetError(2, 0, '')
        Return DllStructGetData($a, 1)
;        Local $a_Call = DllCall("Crypt32.dll", "bool", "CryptStringToBinaryA", "str", $sB64String, "dword", 0, "dword", 1, "ptr", 0, "dword*", 0, "ptr", 0, "ptr", 0)
;        If @error Or Not $a_Call[0] Then Return SetError(1, 0, "")
;        Local $a = DllStructCreate("byte[" & $a_Call[5] & "]")
;        $a_Call = DllCall("Crypt32.dll", "bool", "CryptStringToBinaryA", "str", $sB64String, "dword", 0, "dword", 1, "struct*", $a, "dword*", $a_Call[5], "ptr", 0, "ptr", 0)
;        If @error Or Not $a_Call[0] Then Return SetError(2, 0, "")
;        Return DllStructGetData($a, 1)
EndFunc   ;==>_Base64Decode
发表于 2020-2-17 11:20:40 | 显示全部楼层
&#8197;学习了,不错
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-12-23 17:12 , Processed in 0.074554 second(s), 14 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表