Deathbringer Posted December 1, 2010 Share Posted December 1, 2010 (edited) Edited January 8, 2011 by JosIsaFucktard Link to comment Share on other sites More sharing options...
kaotkbliss Posted December 1, 2010 Share Posted December 1, 2010 I have not messed with GDIplus at all. But taking a guess, I would think maybe _GDIPlus_GraphicsClear is clearing the option? just a guess, but maybe if you place your _GDIPlus_GraphicsSetSmoothingMode between _GDIPlus_GraphicsClear and _GDIPlus_GraphicsFillEllipse inside the loop 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
UEZ Posted December 1, 2010 Share Posted December 1, 2010 Why you disabled the alpha channel in _GDIPlus_GraphicsClear($hBuffer, 0x00000000)?If you replace _GDIPlus_GraphicsClear($hBuffer, 0x00000000) with e.g. _GDIPlus_GraphicsClear($hBuffer, 0xFFF0F0F0) it will work.Br,UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
UEZ Posted December 1, 2010 Share Posted December 1, 2010 (edited) Do you mean something like that? expandcollapse popup#AutoIt3Wrapper_Au3Check_Parameters=-q -d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 #include <GDIPlus.au3> #include <WindowsConstants.au3> Opt("PixelCoordMode", 2) If Not _GDIPlus_Startup() Then Exit MsgBox(16, "GDI+ initialization failed", "The program cannot continue.", 10) Global $hBrush = _GDIPlus_BrushCreateSolid(0xFF7F0000) Global $hGUI = GUICreate("Test", 250, 250) GUISetState() Global $bg = Hex(PixelGetColor(0, 0, $hGUI), 6) ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $bg = ' & $bg & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console Global $hGraphics = _GDIPlus_GraphicsCreateFromHWND($hGUI) Global $hBitmapBuffer = _GDIPlus_BitmapCreateFromGraphics(250, 250, $hGraphics) Global $hBuffer = _GDIPlus_ImageGetGraphicsContext($hBitmapBuffer) _GDIPlus_GraphicsSetSmoothingMode($hBuffer, 2) _GDIPlus_GraphicsFillEllipse($hBuffer, 10, 70, 48, 48, $hBrush) _GDIPlus_GraphicsDrawImage($hGraphics, $hBitmapBuffer, 0, 0) GUIRegisterMsg(0x000F, "WM_PAINT") While 1 _GDIPlus_GraphicsClear($hBuffer, "0xFF" & $bg) _GDIPlus_GraphicsFillEllipse($hBuffer, 10, 70, 48, 48, $hBrush) _GDIPlus_GraphicsDrawImage($hGraphics, $hBitmapBuffer, 0, 0) If GUIGetMsg() = -3 Then ExitLoop WEnd _GDIPlus_BitmapDispose($hBitmapBuffer) _GDIPlus_BrushDispose($hBrush) _GDIPlus_GraphicsDispose($hBuffer) _GDIPlus_GraphicsDispose($hGraphics) _GDIPlus_Shutdown() Func WM_PAINT() _GDIPlus_GraphicsDrawImage($hGraphics, $hBitmapBuffer, 0, 0) Return 'GUI_RUNDEFMSG' EndFunc ;==>WM_PAINT Br, UEZ Edited December 1, 2010 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
UEZ Posted December 1, 2010 Share Posted December 1, 2010 Check out post #7 again. Is this now what you want? Br, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ 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