Reference Manual - 1.0.1
IDirectFBWindow   SetOpaqueRegion

Disable alpha channel blending for one region of the window.    禁用alpha通道,用于合成其它部分的窗口.

SetOpaqueRegion (
  IDirectFBWindow   * thiz,
  int   x1,
  int   y1,
  int   x2,
  int   y2
);

If DWOP_ALPHACHANNEL and DWOP_OPAQUE_REGION are set but not DWOP_COLORKEYING and the opacity of the window is 255 the window gets rendered without alpha blending within the specified region.

如果DWOP_ALPHACHNNEL 和DWOP_OPAQUE_REGION 被设置了,但是没有设置DWOP_COLORKEYING 和设置window透明色为255的,这是最初定的精确位置.

This is extremely useful for alpha blended window decorations while the main content stays opaque and gets rendered faster.

 

Creative Commons License This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License