当前位置:网站首页>P3D gauge size problem

P3D gauge size problem

2022-07-05 07:34:00 sukhoi27smk

1. stay panel.cfg in , Every window There can be multiple gauge,window yes gauge The container of

2. stay panel.cfg in ,background_color by window Background color , If set to 0,0,0, Not by gauge Covered

Some will be transparent

3. stay panel.cfg in ,size_mm and gaugeXX Of W,H yes window and gauge Proportion of , Not the real size ,

If size_mm == W,H, that gauge Will be full window, otherwise , Will use background_color fill

4. about MAKE_STATIC Class gauge,gauge Runtime ,gauge The actual size of is the background (MAKE_STATIC The first

Two parameters ) Multiply the size of the size by a scale factor , namely  pgauge->x_adjust and pgauge->y_adjust, So we

Use GDI To draw gauge Words , The size of the drawing can be drawn according to the size of the background image , Last  StretchBlt When , Use

The scale factor is achieved GDI The drawing size of is the same as gauge Size matching

 

  The above first 3 Article implementation window and gauge Same size , The first 4 First let gdi Draw size and gauge The picture is the same size , then

Through the proportional coefficient gdi Draw size and gauge The actual size is consistent .

原网站

版权声明
本文为[sukhoi27smk]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140553428543.html