ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Wall Paper or Background Image VB.Net Visual Studio 10
Posted by Robert Karpovich on Feb-14-2011 07:16
I can't  get a image to display as either the background image or wall paper.  Image is in the directory that the program is running / debugging from.  Code is:

' Create a MultiChart

        Dim m As MultiChart = New MultiChart(700, 550)
        Dim x As Long

        Call m.setRoundedFrame()
        'Call m.setBackground(&HCCCCFF, &H0)
        'Call m.setBackground(&H800000FF, &H800000FF)

        ' Call m.setSearchPath(Server.MapPath("."))
        Call m.addText(1, 10, "Conditions At " & theDateTime, "arialbi.ttf", 14)
        Call m.addText(425, 5, "Tower Wind Speed and Direction", "arialbi.ttf", 10)
        Call m.addText(425, 260, "Site 2 Wind Speed and Direction", "arialbi.ttf", 10)

        strPath = Server.MapPath("netcam.jpeg")

        'Call m.setBgImage(strPath)
        Call m.setWallpaper(strPath)
        Call m.addChart(450, 25, c)

        ' Put the left char at (0, 25)
        Call m.addChart(450, 280, c1)

Rest of code...

Any help you can provide is appreciated.  The image does not display.

Bob Karpovich
AAQS, Inc.

  Re: Wall Paper or Background Image VB.Net Visual Studio 10
Posted by Robert Karpovich on Feb-14-2011 08:43
No need to reply.  File extension was jpg and not jpeg.  Wall Paper or Background Image work fine in VB.Net Visual Studio 10.