06-12-2013 05:45 PM - edited 06-12-2013 11:27 PM
I am trying to create a route overlay for the MapView to be updated semi live. I am currently attempting to figure out how the set a transperant pixel value in the ForeignWindow control so that i can draw my lines in it then overlay it on mapview. It appers that the only possible pixel values available to me are between 0 and 255 which leads me to believe transperancy with this control may not be possible since with this limit i cant even clone the image below my control.
Is there a way i can manually draw onto any other control to achieve the desired effect?
Solved! Go to Solution.
06-13-2013 09:51 AM - edited 06-13-2013 09:53 AM
Pixels have an RGBA value, where RGB is the color from 1-255 and A is the alpha value, achieved through Alpha Composition. For any pixel and it's associated pointer, R=[pointer], G=[pointer+1], B=[pointer+2] and A=[pointer+3]. Look into changing the alpha value of your pixels.
On a side note, I was trying to do a very similar thing on another project. I'm sure it's possible somehow with a bitmap.