Instructions
Use the dropdown boxes below to change Web Shape properties. Click the Update
button to apply the changes to both Web Shapes (streamed and filed).
Note that these properties represent only a small subset of the available
properties.
How does the Web Shape work?
When a Web Shape is set to function as a file, the image is created and saved as
a file. Then the Web Shape's ImageUrl property (inherited from the
Image web control class) is set to this file.
'The following is from the Web Shape code:
baseBitmap.Save(imgFile, Me.ImageFileFormat)
Me.ImageUrl = imgFile
When a Web Shape is set to work as a stream, the image is first saved as a MemoryStream
and then written to the screen:
'The following is from the Web Shape
code:
Dim memory As New MemoryStream()
baseBitmap.Save(memory, Me.ImageFileFormat)
memory.WriteTo(Page.Response.OutputStream)
What's going on with the 'streamed' Web Shape in this demo?
The streamed Web Shape is on its own form (streaming.aspx). That form is shown
in an Image object (Image1) on this form (WebShapeDemoPage1.aspx).