Archived

This topic is now archived and is closed to further replies.

n4gix

Image Name= and Imagesize= help

Recommended Posts

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
Help AVSIM continue to serve you!
Please donate today!

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

Share this post


Link to post
Share on other sites

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

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

Share this post


Link to post
Share on other sites