Make UINavigationBar transparent

If anybody is wondering how to achieve this in iOS 7+, here’s a solution (iOS 6 compatible too) In Objective-C [self.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault]; self.navigationBar.shadowImage = [UIImage new]; self.navigationBar.translucent = YES; In swift 3 (iOS 10) self.navigationBar.setBackgroundImage(UIImage(), for: .default) self.navigationBar.shadowImage = UIImage() self.navigationBar.isTranslucent = true In swift 2 self.navigationBar.setBackgroundImage(UIImage(), forBarMetrics: .Default) self.navigationBar.shadowImage = UIImage() self.navigationBar.translucent … Read more

Can PNG image transparency be preserved when using PHP’s GDlib imagecopyresampled?

imagealphablending( $targetImage, false ); imagesavealpha( $targetImage, true ); did it for me. Thanks ceejayoz. note, the target image needs the alpha settings, not the source image. Edit: full replacement code. See also answers below and their comments. This is not guaranteed to be be perfect in any way, but did achieve my needs at the … Read more

Transparent background image for Form – Smooth edge shape for the Form

You can use Layered Windows: Using a layered window can significantly improve performance and visual effects for a window that has a complex shape, animates its shape, or wishes to use alpha blending effects. The system automatically composes and repaints layered windows and the windows of underlying applications. As a result, layered windows are rendered … Read more

How to convert the background color of image to match the color of Pygame window?

You don’t need to change the background color of the image to the background color of the window, but make the background of the image transparent. Set the transparent colorkey by pygame.Surface.set_colorkey: Set the current color key for the Surface. When blitting this Surface onto a destination, any pixels that have the same color as … Read more