|
本帖最后由 ugopen 于 2014-3-28 09:08 编辑 5 E0 G/ |1 i# t
. o" \3 t0 z2 m( O; S" a! w/ D1 Y
9 R: n% r- I3 H UF_OBJ_translucency_t translucency;
- o, Z- Y3 A" a1 E+ ?9 r UF_OBJ_ask_translucency(object,&translucency); //获得所选的透明值
, I6 u$ B1 ]: F- V/ r- T
4 O C9 P8 R0 Z if(translucency>=50){( m, [4 y" E' Y* A
UF_OBJ_set_translucency(object,0);
) A2 L+ p2 Z3 s g$ L+ s9 k% N7 ~# B
}
: f9 h" H/ Z7 g% O% S& Z else{; l. Z$ h& ^5 [! p2 C7 c( O% U0 }
UF_OBJ_set_translucency(object,100); ! Y9 a' e! x/ u+ T3 Y- H) X
}5 ~+ ~4 z$ r5 T- `' m4 c
2 ]+ b$ C5 V4 B! Q$ v) I8 h, t! y; y
h6 R: V+ J4 f0 `, o9 b& J( U) B& Z2 z
这个函数的帮助为
. g+ }) s: x1 G& H8 X7 Q5 p/ \9 n3 E# ^: T9 s" ?1 Z
int UF_OBJ_ask_translucency
8 [! K% q) w1 c, v2 a(
; `- x: b) K% H7 v' `1 f, {4 \tag_t object, ) D6 w7 `; {) K4 h- F: j, J
UF_OBJ_translucency_p_t translucency
+ C8 p: @) Y- Z6 X6 x/ ?2 D6 G)' w. T+ ?5 U7 y: Y6 }
参考资料来源: nx78.com/sheown.asp?id=65
" D5 U5 F2 F0 w& S- d H& T+ j+ Z8 b. ]5 c; {
; E4 k; b! ^2 ^
7 B0 `+ w! A4 h0 ?% M/ f
7 K% R& q/ c+ r
$ \ C. @2 |+ W4 T |
|