Jump to content
Sign in to follow this  
n4gix

Image Name= and Imagesize= help

Recommended Posts

Guest greenco

When using "CASE" statements I often see different examples of the following:The "Image Name=" I understand this part of the statement identifies the Bitmap file that is to be used.What is the purpose of the "ImageSizes="? I have changed these values and they do not seem to make a difference, when I reloaded the gauge. I would have thought that it was the width and height of the Bitmap named in the first part of the statement.

Share this post


Link to post
Share on other sites

ImageSizes= when used should be the same x,y as the source bitmap.However, strictly speaking I don't think the parameter is required any longer...


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites
Guest greenco

Thanks BillI made a gray rectangle, to use as the background of a gauge and I made it's "ImageSize=" the same as the background's bitmap size. In the "Case" part of the code, I want to place a "Switch" bitmap, so it shows up on the gauge's background, and can be toggled on and off. Other than redrawing the switch bitmap, is there a way to resize it when it draws on the panel?

Share this post


Link to post
Share on other sites
Guest greenco

I made the switch bitmaps smaller and now they look good.Thanks for your help.

Share this post


Link to post
Share on other sites

Cool. Yes, you do have to have all the artwork scaled correctly... ;)


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

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...