LimeSeed Posted November 20, 2008 Share Posted November 20, 2008 I cannot for the love of god find a way to change the color of a graphic created with gdi+ and cannot figure out how to change the position of an object created with gdiplus and then refresh that any ways to do these? global $warming = true Link to comment Share on other sites More sharing options...
BrettF Posted November 20, 2008 Share Posted November 20, 2008 Post your code Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Adam1213 Posted November 20, 2008 Share Posted November 20, 2008 I cannot for the love of god find a way to change the color of a graphic created with gdi+ and cannot figure out how to change the position of an object created with gdiplus and then refresh that any ways to do these?Have a look at Radar animation with GDI+It may be that you just clear the object and redraw it without any problems. IRC Client - 75 pages 3728 lines. Blob crumbler (game)Backup (drag to backup + cmd line)RS232 Link to comment Share on other sites More sharing options...
LimeSeed Posted November 20, 2008 Author Share Posted November 20, 2008 Have a look at Radar animation with GDI+It may be that you just clear the object and redraw it without any problems.gocha, but is there any way to fill an arc? i see a _gdiplus_drawarc but no fill arc global $warming = true Link to comment Share on other sites More sharing options...
Malkey Posted November 20, 2008 Share Posted November 20, 2008 gocha, but is there any way to fill an arc? i see a _gdiplus_drawarc but no fill arc This is an example from the AutoIt help with a pen and a brush added. #include <GuiConstantsEx.au3> #include <GDIPlus.au3> Opt('MustDeclareVars', 1) _Main() Func _Main() Local $hGUI, $hWnd, $hGraphic, $hBrush, $hPen ; Create GUI $hGUI = GUICreate("GDI+", 400, 300) $hWnd = WinGetHandle("GDI+") GUISetState() ; Draw a pie _GDIPlus_Startup() $hBrush = _GDIPlus_BrushCreateSolid(0xFFFFFF00) $hPen = _GDIPlus_PenCreate(0xFF0000FF, 3) $hGraphic = _GDIPlus_GraphicsCreateFromHWND($hWnd) _GDIPlus_GraphicsFillPie($hGraphic, 150, 80, 100, 100, 45, 270, $hBrush) _GDIPlus_GraphicsDrawPie($hGraphic, 150, 80, 100, 100, 45, 270, $hPen) ; Loop until user exits Do Until GUIGetMsg() = $GUI_EVENT_CLOSE ; Clean up resources _GDIPlus_BrushDispose($hBrush) _GDIPlus_PenDispose($hPen) _GDIPlus_GraphicsDispose($hGraphic) _GDIPlus_Shutdown() EndFunc ;==>_Main Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now