VEColor alpha 0.0 is as opaque as 1.0

My observation, working a little bit with polylines, is that the A property of a VEColor does not work exactly as advertised in the SDK. While transparency 0.0 is meant to be transparent, 0.0 seems to be identical to 1.0. I am using IE6. Anybody else see this

An obvious workaround is to use an alpha of 0.001, which looks pretty invisible to me. Yes, it DOES seem silly to be drawing invisible lines, but that's a separate issue. Can the polyline be fixed to behave as the documentation says it ought to

It's nice to see the rollout of an improved SDK. Keep up the nice work!

Any idea when MSFT will be giving us classes to support working with collections (creating, renaming, adding & deleting pins, etc)

Thanks!




Answer this question

VEColor alpha 0.0 is as opaque as 1.0

  • gary560

    Interesting bug. I've filed a bug with the team on this one (I think we would all agree that 0 = transparent, not opaque ).

    In the meanwhile, setting it to 0.00001 is an easy work-around.

    Cheers,
    Caleb


  • Tom Hollander

    Yeah i can confirm that 0.0 produces an opaque line when it should produce a completly transparent line. I guess the bounds are (0 > alpha >= 1) not ( 0 >= alpha >= 1).
    I have no need for completly transaparent lines and i think that in all but simply cases you would be better of removeing the lines rather then drawing them transparent for simple performance reasons.
    John.


  • Greazy

    I had a similar problem in that the fillcolor seems to behave the same way on polygons. I would have thought that a polygon with a fill opacity of 1 would be different from one with 0. My solution was however, the same with setting it to 0.0001
  • VEColor alpha 0.0 is as opaque as 1.0