![]() |
|
[C#] How can i radius/glowing graphics - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C#] How can i radius/glowing graphics (/showthread.php?tid=5711966) |
How can i radius/glowing graphics - cristlol - Sep 6, 2017 How can i radius graphics or make it glow like orcus i tried searching on google couldn't solve the issue. for example ![]() if take a look closer ![]() The line is glowing. please help. thanks * - 0xDEAD10CC - Sep 6, 2017 You need to draw your graphics with a LinearGradientBrush, this is a pretty trivial example on where to use that class. * - cristlol - Sep 6, 2017 Thanks man it works but not as I expected but it better than my previous one. * - ๖ۣۜDiViN3 - Sep 7, 2017 By creating a new control you can override the paint event and fill it with a rectangular glow (or blurred control shape). Then just place another control on top centered. The same idea applies to forms since it's technically a control. Instead of inheriting from a 'Control' you would instead use a 'Form' for your base class. Example: ![]() Link: Control Source * - cristlol - Sep 8, 2017 (Sep 7, 2017 01:50 PM)๖ۣۜDiViN3 Wrote: By creating a new control you can override the paint event and fill it with a rectangular glow (or blurred control shape). Then just place another control on top centered. The same idea applies to forms since it's technically a control. Instead of inheriting from a 'Control' you would instead use a 'Form' for your base class. oh now i get it. Thank you alot. 👍 * - Sorzus - Sep 9, 2017 Step 1: Dont use WinForms In my opinion, changing the theme in a Windows Form application is just nonsense, it's just not made for it. GDI+ is a slow framework (it is a framework that fits exactly the needs of the applications that are intended for WinForms: a simple, standard user interface). If you want and need fancy GUIs with special effects, animations etc. just use WPF. It may be possible that you can also accomplish something like that in WinForms with ugly hacks but in the end, you will have a lot more problems in contrast to just use WPF. The framework I'm using for Orcus is http://mahapps.com/ that already has this glow feature (I did not write that by myself). * - cristlol - Sep 9, 2017 (Sep 9, 2017 09:27 AM)Sorzus Wrote: Step 1: Dont use WinForms Thanks a lot man 🤝 * - 0xDEAD10CC - Sep 9, 2017 (Sep 9, 2017 09:27 AM)Sorzus Wrote: Step 1: Dont use WinForms Winforms not being made for themes is a silly statement. Have you ever seen RadForms from Telerik for Winforms? If it wasn't designed to do basic themes GDI+ wouldn't exist and System.Drawing wouldn't either. It's more efficient to do UI-intensive themes with WPF because it relies more on the GPU, but that doesn't mean basic themes can't or shouldn't be made in Winforms. WPF is just newer technology. That's like saying Windows 2000 was not designed for calculations because Windows 10 is newer. GDI is not going away anytime soon either. RE: *Button Control Design - Grooty - Feb 22, 2022 (Sep 7, 2017 01:50 PM)๖ۣۜDiViN3 Wrote: By creating a new control you can override the paint event and fill it with a rectangular glow (or blurred control shape). Then just place another control on top centered. The same idea applies to forms since it's technically a control. Instead of inheriting from a 'Control' you would instead use a 'Form' for your base class. Update link please RE: How can i radius/glowing graphics - Endorphins - Feb 22, 2022 (Feb 22, 2022 04:04 AM)Grooty Wrote: Update link please He can't since the guy you're quoting is not active anymore. You can try other suggestions like using WPF which is more appropriate. |