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

Message ListMessage List     Post MessagePost Message

  Rendering a logo image
Posted by Chuck Willette on May-14-2013 08:58
Is there any way of rendering a logo image on a chart without having the image file
located in the same working directory as the application .exe? My ChartDirector code is:

// Add a custom logo at the bottom right of the plot area
    c->addText(650, 430, "<*img=FAuvLogo3.png*>");

I am forced to install the image file in the same location as my executable or it will not
render it onto the chart. Users are constantly moving the .exe around and leave behind
the logo image file.

  Re: Rendering a logo image
Posted by Peter Kwan on May-14-2013 22:34
Hi Chuck,

You can put the image in anywhere you like. Just provide the full file system path of the image file in the <*img*> tag:

<*img=/full/path/to/FAuvLogo3.png*>

Another method is to use BaseChart.setSearchPath to tell ChartDirector which directory or directories to search for the image file.

Hope this can help.

Regards
Peter Kwan