compositing

Implementing Porter-Duff Rules in Direct3D

What Direct3D render states should be used to implement Java's Porter-Duff compositing rules (CLEAR, SRC, SRCOVER, etc.)? ...

Set BufferedImage alpha mask in Java

I have two BufferedImages I loaded in from pngs. The first contains an image, the second an alpha mask for the image. I want to create a combined image from the two, by applying the alpha mask. My google-fu fails me. I know how to load/save the images, I just need the bit where I go from two BufferedImages to one BufferedImage with the...

automatically composit sound - php or something like that - GD library for sound?

Ok does anybody have any idea for good ways to accomplish the following: A user programs some drum loops in flash and is somehow able to download or save an mp3 of the loop. I thought that the pattern could be composted on the server side. Then a link to the file is sent to the user. I had thought there might be something like image...

Empty UIView with minimal drawRect: overhead

Hi, I have an application that has three nested views that are mechanically important, but have no visual elements: A vanila UIView that doesn't have any content of its own, and is simply used as a host for CALayers. A UIScrollView (that is queried for it's origin and used to position CALayers in 3d: I really only use this view to fai...

iPhone Quartz. How do I create a matte using a path rather then a bitmap?

In the visualization app I'm writing I want to shape a graphic using a matte created with a path. The graphic is a horizontal rectangular strip with various shapes drawn within. Atop this rectangular strip I want to draw an ellipse to act as a matte that shapes the rectangular strip to make it appear to drawn within the ellipse. How do I...

X11 and ARGB visuals: does DefaultDepth() never return 32?

Hi, I'm establishing a connection to the X server like this: display = XOpenDisplay(NULL); screen = DefaultScreen(display); depth = DefaultDepth(display, screen); I'm wondering now why "depth" is always set to 24. I would expect that it is only 24 when compositing is turned off, but in fact, it is still 24 even when I turn on composi...

Cocoa: Using an NSGradient as a mask for drawing below it

I am trying to draw a shape's reflection using Cocoa. I have already applied an NSAffineTransform and redrawn the shape successfully, but now I can't figure out how to draw an alpha mask over it. I'm using an NSCompositeDestinationOut operation, but it's giving me an unwanted result: I'm not exactly sure how to fix this - I need to make...

How to patch xorg-server (about compositing problem of ATI)?

I'm sorry, the official driver of ATI is just woking!!! Here is a solution: http://blog.jasondonenfeld.com/190 I tried to make install xorg-server, but it seems not working. (Download from:http://xorg.freedesktop.org/releases/individual/xserver/) I change the source code as mentioned above..But why? Should I make install all of xo...