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

Message ListMessage List     Post MessagePost Message

  Remove Transposed Color on InterlineLayer
Posted by Daniel M on Oct-29-2019 09:00
Is there a way to remove the transparent layers from lesser z-level if they are covered by a higher z-level? I am trying to use interlinelayer with user defined curves. There is one data set that is completely within the area of a lower z-level layer. (Think the shape of a donut)

Another example would be  on the depth bar chart sample. I would like to only see the back bars if they are not covered by a more-forward bar. I can do this with non-transparent layers, but I would like transparent layers as I have a background I am overlaying the data on.

  Re: Remove Transposed Color on InterlineLayer
Posted by Peter Kwan on Oct-30-2019 12:59
Hi Daniel M,

From my understanding, you would like to cut out some region in the InterLineLayer, such as punching hole in the InterLineLayer. While the InterLineLayer is non-transparent or semi-transparent, the hole will appear as completely transparent.

It would be easy if the hole is a non-rotated rectangle (that is, it borders are vertical and horizontal lines). This can be achieved using xZoneColor and yZoneColor.

For other cases, it may be quite complicated. The method I think of is, which is similar to how this type of things would be created with Photoshop.

(a) Create a separate chart image with just the hole in some special unique color not appearing in the InterLineLayer. Everything else (the background, grid lines, etc) must be transparent. This image is used as the "mask".

(b) Create yet another chart with just the InterLineLayer with everything else transparent. Merge the image in (a) onto the chart. The chart will then contain a hole with the unique color. Use BaseChart.setTransparentColor to configure the unique color as the transparent color. Save the chart in PNG (either to memory or as a file). The PNG will then contain your InterLineLayer with a transparent hole.

(c) Load the PNG, and merge it with your real chart. Your real chart will then contain an InterLineLayer with a hole in it.

Regards
Peter Kwan


hausfrauen porno tube