Jump to content
Sign in to follow this  
Guest

XML Trainee needs help

Recommended Posts

Guest

The following code works, but I cannot figure out how to insert the mask that must go between the face and the needles. The areas outlined in red should be part of the face. The needles are not to be visible in this area. I was trying a MaskImage command, but everytime I tried the gauge would not show up. Any help would be great. Thanks(A:Eng1 cylinder head temperature,celsius)(A:Eng2 cylinder head temperature,celsius)

Share this post


Link to post
Share on other sites
Guest bartels

Try <Element><Image Name="Cylinder_Temp.bmp" ImageSizes="256,256"/></Element>instead of<Image Name="Cylinder_Temp.bmp" ImageSizes="256,256"/>Arne Bartels

Share this post


Link to post
Share on other sites
Guest

Thanks for the reply, but that part works. "Cylinder_Temp.bmp" is the one labled background. When I was trying to make the mask work, I had left the "Cylinder_Temp.bmp" out so it would not be any part of the problem. There is currently no code included for the mask bitmap. I am thinking it must be inserted between the face bitmap and the needles. I just do not know how to do it.

Share this post


Link to post
Share on other sites
Guest Eugen

Hi,Can't you use a transparency bitmap where you have used eg 2.2.2 to hide the red parts and 0.0.0 for the transparent part ?I would put Transparency image last in the code i.e above the other bitmaps...Haven't tried but its worth trying.BrgdsEugen

Share this post


Link to post
Share on other sites
Guest

This type of gauge, if I understand the problem correctly, doesn't really need a mask (as such, just a transparent bitmap) at all. Just keep in mind that the resulting effect is based on the sequencing of the graphical elements. I would do something like the following structure:The lighted background Code for the left rotating needle - lighted Code for the right rotating needle - lightedThe unlighted ring/bezel and needle coverSince the unlighted image is placed further down in the sequence, it will cover up the needles just as effectively. The "center" area need to be transparent with a 0,0,0 bitmap color to reveal what's behind.I'm able to get normal masking to work, but it takes a long while, and I have no idea why I succeed :D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...