Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Using System.Drawing, System.Drawing2D and System.Imaging in web - pages


Message #1 by Wim Hollebrandse <Wim.Hollebrandse@c...> on Fri, 13 Jul 2001 12:28:07 +0100
These namespaces only seem to contain methods which can be used in Windows

Forms. All examples (in C#) use EventArguments from the OnPaint event. Is

there any way of using these methods to create 'on-the-fly' images in an

HTML page?



Cheers,

Wim

Message #2 by "c2i - Richard Clark" <rc@c...> on Fri, 13 Jul 2001 15:39:53 +0200
Try this :



Create an empty bitmap.



In your page, load it in a new graphics and paint on it what you want.

Then, save it with another name (using Session.SessionID ?)

Next, add an Image in your page with the URL of your new picture.



I think it work but :

    be carefull about the name of the picture.

    I don't know when deleting old Pictures.



I'll be interested with your code if this method is successfull (I do'nt

have time actually to test it)



Richard Clark - rc@c...

______________________________________________

NOUVEAU : Liste de diffusion sur MS.NET

Inscription en envoyant un mail à :

----------------------------------------------

   dotnetfrance-subscribe@y...

----------------------------------------------

http://www.c2i.fr - Le portail francophone

Visual Basic,VB.NET,ASP, ASP.NET

+ de 517 aides disponibles (15/02)

______________________________________________







----- Original Message -----

From: "Wim Hollebrandse" <Wim.Hollebrandse@c...>

To: "ASP+" <aspx@p...>

Sent: Friday, July 13, 2001 1:28 PM

Subject: [aspx] Using System.Drawing, System.Drawing2D and System.Imaging in

web pages





> These namespaces only seem to contain methods which can be used in Windows

> Forms. All examples (in C#) use EventArguments from the OnPaint event. Is

> there any way of using these methods to create 'on-the-fly' images in an

> HTML page?

>

> Cheers,

> Wim

>

>




  Return to Index