Composite Quesiton

Huang, FrankR FrankR.Huang at amd.com
Mon May 17 02:39:11 PDT 2010


Hi, all

            

            I want to ask you guys a question about composite.

            A condition:

                        dest:           a 100x100 picture(all white
color)

                        source:       a 1x1 picture with repeat
parameter (PICT_x8r8g8b8, color green)

                        mask:         a 20x20 mask (PICT_a8)

 

            As we know, the rendering model is as below:

                        dest = (source IN mask) OP dest

 

 

            When I use XRenderComposite(), the call is as below:

                        XRenderComposite(dpy, PictOpSrc, source, mask,
dest, 0, 0, 0, 0, 50, 50, 40, 40)

 

            You can imagine the result of this test. I attached the
result of this application. I can understand the green part , but for
the black part, I have no idea. Is it all solid to black???

 

 

Thanks,

Frank 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100517/f99aaa74/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Radeon_X1200.png
Type: image/png
Size: 2357 bytes
Desc: Radeon_X1200.png
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100517/f99aaa74/attachment-0001.png>


More information about the xorg-devel mailing list