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

New Message on BDOTNET

-----------------------------------------------------------
From: sakthiveluv
Message 1 in Discussion


This is my code:::

   x_axis = Request.Params("imgbtnDrawChart.x")
        y_axis = Request.Params("imgbtnDrawChart.y")


        Dim x As Integer = CType(x_axis, Integer)
        Dim y As Integer = CType(y_axis, Integer)


        ' x_axis = "200"
        'y_axis = "200"

        'Build a BitMap that will act as the pallet and container for the bar 
graph. Here 600 is 
        'the width and 300 is the height.  These values could also be passed as 
parameters.

        Dim objBitMap As New Bitmap(400, 400)

        'Declare your Graphics objects for painting graphics on you newly 
created bitmap.
        Dim objGraphics As Graphics
        objGraphics = Graphics.FromImage
(objBitMap)
        'Set the background color to silver
        objGraphics.Clear(Color.MediumSeaGreen)

        'Build an array of values for the bar and pie chart.  These values 
could also be pulled from a database.




        Dim symbolLeg As PointF = New PointF(335, 20)
        Dim descLeg As PointF = New PointF(360, 160)







        objGraphics.FillEllipse(New SolidBrush(Color.Green), 0, 0, 400, 400)

        objGraphics.FillEllipse(New SolidBrush(Color.MediumSeaGreen), 100, 100, 
200, 200)

        '  objGraphics.FillPath()


        objGraphics.FillRectangle(New SolidBrush(Color.Brown), 190, 175, 20, 50)

        objGraphics.DrawRectangle(Pens.Black, 190, 175, 20, 50)




        Dim intX As Integer
        Dim intY As Integer
        Dim ballbyballscore As Integer



        objGraphics.DrawLine
(New Pen(Color.Red), 200, 0, 200, 180)

        objGraphics.DrawLine(New Pen(Color.Red), 400, 180, 200, 180)

        objGraphics.DrawLine(New Pen(Color.Red), 200, 400, 200, 180)

        objGraphics.DrawLine
(New Pen(Color.Red), 0, 180, 200, 180)

        'objGraphics.DrawLine(New Pen(Color.RosyBrown), 75, 200, 200, 180)
        Dim loopAxis As Integer

        objGraphics.DrawLine(New Pen(GetColor(3)), x, y, 200, 180)


        ' Dim imgPath As String = Server.MapPath


        
'objBitMap.Save("D:\webroot\website1\html\afpfeed\XML\wahenwheel1_Draw.Jpeg", 
ImageFormat.Jpeg)
       ' 
objBitMap.Save(("D:/webroot/website1/html/livecharts/Image/wahenwheel1_Draw.gif"),
 
ImageFormat.gif)
        
objBitMap.Save(Request.MapPath("/html/livecharts/Image/wahenwheel1_Draw.Gif"), 
System.Drawing.Imaging.ImageFormat.Gif) 
'objBitMap.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif
) 
        'objBitMap.Save("C:\wahenwheel1_Draw.Jpeg", ImageFormat.Jpeg)

        'imgbtnDrawChart.ImageUrl = Server.MapPath("\wahenwheel1_Draw.Jpeg")
       ' objBitMap.Save("D:\wahenwheel1_Draw.gif", 
ImageFormat.Jpeg)
       ' objBitMap.Save("/html/livecharts/Image/wahenwheel1_Draw.Jpeg", 
ImageFormat.Jpeg)

        'imgbtnDrawChart.ImageUrl = 
Server.MapPath("/Score_Chats/Image/wahenwheel1_Draw.Jpeg")

       ' imgbtnDrawChart.ImageUrl = 
"/html/livecharts/Image/wahenwheel1_Draw.Jpeg"




        imgbtnDrawChart.Height.Pixel(400)
        imgbtnDrawChart.Width.Pixel(400)
    End Sub




Error Here........................... 
...................................................


Server Error in '/' Application.


A generic error occurred in GDI+. Description: 
An unhandled exception occurred during the execution of the current web 
request. Please review the stack trace for more information about the error and 
where it originated in the code. 

Exception Details: 
System.Runtime.InteropServices.ExternalException: A generic error occurred 
in GDI+.

Source Error: 





Line 1106:        
'objBitMap.Save("D:\webroot\website1\html\afpfeed\XML\wahenwheel1_Draw.Jpeg", 
ImageFormat.Jpeg)
Line 1107:       ' 
objBitMap.Save(("D:/webroot/website1/html/livecharts/Image/wahenwheel1_Draw.gif"),
 
ImageFormat.gif)
Line 1108:        
objBitMap.Save(Request.MapPath("`/html/livecharts/Image/wahenwheel1_Draw.Gif"), 
System.Drawing.Imaging.ImageFormat.Gif) 
Line 1109:'objBitMap.Save
(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif) 
Line 1110:        'objBitMap.Save("C:\wahenwheel1_Draw.Jpeg", ImageFormat.Jpeg)



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

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to