- Messages
- 1,451
- Country
Hello lads
I am trying to understand how on hearth can you resize an image after being converted into the special 8 bit format with alpha that only Imagetool can handle (AFAIK)?
I was studying the FS2004 SDK along with c1xx_dg gauge (by Jim Robinson) and he managed to resize a former 8 bit with alpha with a native 2^2 power size image into a 260 x 260 pixels with loosing the format!!!
I am doing an educated guess here; I am assuming the former images perhaps were designed in a 252 x 252 pixel "enviroment" (I really can say where he made them: in paint, corel or photoshop).
I am getting good results without using the drawing order suggested in the SDK (see the code below; wich is not included in order to get this result):
First, the original front card including all mambo yambo with highlights:
As you can see, I am not using
429_altimeter_highlight_alpha.bmp or 429_altimeter_shadow_alpha.bmp images (not shown)
Now, the result in the simulator:
Finally, Jim's gauge within the sim (fact: all images -including the shadow and highlights- are 260 x 260 pixels; I'm not kidding):
Any clues on how to resize the images?
In advance, thank you.
Sergio
I am trying to understand how on hearth can you resize an image after being converted into the special 8 bit format with alpha that only Imagetool can handle (AFAIK)?
I was studying the FS2004 SDK along with c1xx_dg gauge (by Jim Robinson) and he managed to resize a former 8 bit with alpha with a native 2^2 power size image into a 260 x 260 pixels with loosing the format!!!
I am doing an educated guess here; I am assuming the former images perhaps were designed in a 252 x 252 pixel "enviroment" (I really can say where he made them: in paint, corel or photoshop).
I am getting good results without using the drawing order suggested in the SDK (see the code below; wich is not included in order to get this result):
HTML:
<!-- ======================= Altimeter Shadow ============================= -->
<Element>
<Position X="0" Y="0"/>
<Image Name="429_altimeter_shadow_alpha.bmp" Alpha="Yes"/>
</Element>
<!--======================= Altimeter Highlight ============================= -->
<Element>
<Position X="0" Y="0"/>
<Image Name="429_altimeter_highlight_alpha.bmp" Alpha="Yes"/>
</Element>
First, the original front card including all mambo yambo with highlights:
As you can see, I am not using
429_altimeter_highlight_alpha.bmp or 429_altimeter_shadow_alpha.bmp images (not shown)
Now, the result in the simulator:
Finally, Jim's gauge within the sim (fact: all images -including the shadow and highlights- are 260 x 260 pixels; I'm not kidding):
Any clues on how to resize the images?
In advance, thank you.
Sergio