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

Message ListMessage List     Post MessagePost Message

  transparent interline layer
Posted by chang on Feb-23-2012 13:54
Hi,

I am working on a finance chart. I have 2 lines and colored the area between the lines with

xyc.addInterLineLayer(layer.getLine(1), layer.getLine(2), color1, color2);

Is it possible to make the colored area transparent as well? It's totally covering my other line layers. I want to superimpose all of them. How do I do it? Thanks!

  Re: transparent interline layer
Posted by Peter Kwan on Feb-23-2012 23:52
Hi chang,

You may use a semi-transparent color (eg. 0x7fff9999 or 0xcf99ff99) to make the fill color transparent. Alternatively, you may use Layer.moveBack to move the InterLineLayer behind other layers in your chart, or you may use Layer.moveFront to move your other line layers in front of the InterLineLayer.

Note that for C#, if you use a literal hex number larger than 0x7fffffff, you would need to use the "unchecked" operator, otherwise the C# compiler will not accept the hex number as an integer.

Hope this can help.

Regards
Peter Kwan