C
C#3y ago
TOLOXI

how do i draw in framework.net

I'm reading through a programming book. Im on the 8th chapter where they ask me to draw a red circle in framework but dont acutlly tell me how to
11 Replies
Angius
Angius3y ago
You can't "draw in framework.net" "framework.net" is not a thing, there's .NET Framework, .NET Core, .NET, etc And neither has anything to do with graphics There are GUI frameworks there, sure WPF, Winforms, UWP, WinUI, Avalonia, Uno, just to name a few Most of them do support drawing stuff Or you could generate an image with a drawing using something like SkiaSharp or ImageSharp
TOLOXI
TOLOXIOP3y ago
but the teacher wants us to use framework and draw is that possible?
Angius
Angius3y ago
Maybe with System.Drawing, dunno You sure the teacher doesn't want you to use, say, Winforms for that?
TOLOXI
TOLOXIOP3y ago
yeah he said so cuz were gonna use buttons to control it
TOLOXI
TOLOXIOP3y ago
TOLOXI
TOLOXIOP3y ago
btw do you know which system im supposed to use to make this work?
Angius
Angius3y ago
Probably Winforms?
TOLOXI
TOLOXIOP3y ago
its not even working lmao this book is so ass
Angius
Angius3y ago
What year was it written?
TOLOXI
TOLOXIOP3y ago
this year its a new book
Anchy
Anchy3y ago
I think you need to share more code what have you tried looking at the screenshot of the above code it looks like Winforms and it should be located in the OnPaint event if you are looking to retrieve the graphics object from the event args
Want results from more Discord servers?
Add your server