Team Fly |
Page 286
You can provide handsome backgrounds or dynamically generated graphs and other quick-response images using the new Response.Outputstream property. You can use this property to transmit a variety of different kinds of binary data to the client. In this example, you build a graphic using the powerful new GDI features in .NET, then you serialize the graphic to the Stream object returned by the Response.Outputstream property. Listing 11.6 generates the gradient and the Bezier curves shown in Figure 11.5:
LISTING 11.6: USING RESPONSCE.OUTPUTSTREAM FOR RAPID GRAPHICS |
Imports System.Drawing |
Team Fly |