Request renewal...

It's about time to renew a request I posted few months ago.

You never know, maybe with more and more .Net developers, somebody has the solution to this !

Just for reminder, I am trying to develop a 'little' paint application with .Net and GDI+.

Unfortunatly in a web application, it seems that System.Drawing is somehow limited.

I can't figure out how to fill an irregular region. Briefly, I want to go further than the simple Draw-Me-A-Box example that you can see everywhere.

Maybe with .Net 2.0 I can expect some new marvellous features in GDI+

Some ideas ?

 

3 Comments

  • What's wrong with Graphics::FillRegion??



    You build a GraphicsPath, create a Region out of it and call FillRegion on it.



  • Are you trying to build this as an ASP.NET application or as a web-deployed WinForms app/control?



    I'll assume you're using WinForms because I have no idea how to accomplish what you want with DHTML. Your problem is simply Code Access Security. I actually have a CAS demo that shows what permissions you need to have to fill an irregular region. Take a look at Chris Sells' Wahoo project to see one strategy for adjusting permissions for your app (he uses an .msi file). Then. if you are interested the minimal permissions you need to do the GDI+ stuff, contact me: CASDemo at orbistertius dot no-ip dot com

  • Drew I think you're right but for a Win app not for a Web app.

    I dream that someday we shoould be able to have a kind of win applet like a java applet, where you can program something nice like a Paint application for the web.

Comments have been disabled for this content.