| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Drawing Graphics In ASP
<!--#include file="canvas.asp"-->
<% Set objCanvas = New Canvas ' Create the object objCanvas.GlobalColourTable(0) = RGB(255,255,255) ' First colour index to white objCanvas.GlobalColourTable(1) = RGB(0,0,0) ' Second colour index to black objCanvas.Resize 160,120,false ' Resize the canvas to 160x120, don't preserve the existing image objCanvas.ForegroundColourIndex = 1 ' Set the drawing pen colour index to 1 (black) objCanvas.Ellipse 100,100,30,20 ' Draw an ellipse in black, with two radii, 30 and 20 pixels objCanvas.Circle 50,50,10 ' Draw a circle in black, radii of 10 pixels objCanvas.Write ' Send the image to the browser %> Read Complete Article |
|
#2
|
|||
|
|||
|
Hi
Very keen to understand more. You make reference to canvas.asp - can you give an example of this file and how it works? Thanks |
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > Drawing Graphics In ASP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|