Transparent Stack Background
Posted: Sat Sep 24, 2011 3:16 pm
Hi!
I've been searching in the Forums for this but the answers I found don't seem to apply.
I am making a substack with is a small palette to do pixel editing (like old MacPaint). The palette has three equal square areas on it - an image that is basically a blown up pixel (8x8 or 16x16 or whatever) map of a small area of an image where the editing action actually takes place, a tool area to select tool actions, and a transparent area that shows the underlying image that is in another substack.
The attached picture illustrates what I want to do. The right hand square in the little substack has a square that is transparent, that shows where the tool is currently operating. The only solution I have at the moment is to duplicate the entire picture in the substack, move it in concert with the user moving the substack around, then editing the bitmaps of both the original and the duplicate when I do pixel editing. I would much rather have that right hand square be transparent so the original image shows through.
Any ideas on how to make the substack background transparent? I have tried creating a pattern using an alpha mask PNG pattern, that just turned the stack background black. I would like to avoid using windowShape because then I have to make a whole fake stack window.
Thanks,
I've been searching in the Forums for this but the answers I found don't seem to apply.
I am making a substack with is a small palette to do pixel editing (like old MacPaint). The palette has three equal square areas on it - an image that is basically a blown up pixel (8x8 or 16x16 or whatever) map of a small area of an image where the editing action actually takes place, a tool area to select tool actions, and a transparent area that shows the underlying image that is in another substack.
The attached picture illustrates what I want to do. The right hand square in the little substack has a square that is transparent, that shows where the tool is currently operating. The only solution I have at the moment is to duplicate the entire picture in the substack, move it in concert with the user moving the substack around, then editing the bitmaps of both the original and the duplicate when I do pixel editing. I would much rather have that right hand square be transparent so the original image shows through.
Any ideas on how to make the substack background transparent? I have tried creating a pattern using an alpha mask PNG pattern, that just turned the stack background black. I would like to avoid using windowShape because then I have to make a whole fake stack window.
Thanks,