How to make overlay control above all other controls?

If you are using a Canvas or Grid in your layout, give the control to be put on top a higher ZIndex. From MSDN: <Page xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” WindowTitle=”ZIndex Sample”> <Canvas> <Rectangle Canvas.ZIndex=”3″ Width=”100″ Height=”100″ Canvas.Top=”100″ Canvas.Left=”100″ Fill=”blue”/> <Rectangle Canvas.ZIndex=”1″ Width=”100″ Height=”100″ Canvas.Top=”150″ Canvas.Left=”150″ Fill=”yellow”/> <Rectangle Canvas.ZIndex=”2″ Width=”100″ Height=”100″ Canvas.Top=”200″ Canvas.Left=”200″ Fill=”green”/> <!– Reverse the order to … Read more

Eclipse WindowBuilder, overlapping JPanels

You might also want to look at OverlayLayout, seen here. It’s not included in the conventional gallery, but it may be of interest. import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.OverlayLayout; /** @see http://stackoverflow.com/a/13437388/230513 */ public class OverlaySample { public static void main(String args[]) { JFrame frame = new … Read more

Hole in overlay with CSS

Yes, this effect is possible. I would use the css box-shadow with a very large spread radius. box-shadow: 0 0 0 9999px rgba(0, 0, 255, 0.2); .hole { position: absolute; top: 20px; left: 20px; width: 200px; height: 150px; box-shadow: 0 0 0 9999px rgba(0, 0, 255, 0.2); } <p>Lorem ipsum dolor sit amet, ocurreret tincidunt … Read more

Merging two images with PHP

I got it working from one I made. <?php $dest = imagecreatefrompng(‘vinyl.png’); $src = imagecreatefromjpeg(‘cover2.jpg’); imagealphablending($dest, false); imagesavealpha($dest, true); imagecopymerge($dest, $src, 10, 9, 0, 0, 181, 180, 100); //have to play with these numbers for it to work for you, etc. header(‘Content-Type: image/png’); imagepng($dest); imagedestroy($dest); imagedestroy($src); ?>