png

Loading PNGs into OpenGL performance issues - Java & JOGL much slower than C# & Tao.OpenGL

I am noticing a large performance difference between Java & JOGL and C# & Tao.OpenGL when both loading PNGs from storage into memory, and when loading that BufferedImage (java) or Bitmap (C# - both are PNGs on hard drive) 'into' OpenGL. This difference is quite large, so I assumed I was doing something wrong, however after quite a lot o...

Understanding 24 bit PNG generated with Photoshop

A 24 bit .png file with transparency, as those that can be generated with Photoshop, has really 24 bits distributed across each color plus the alpha ? or the 24 bit refer only to the colors and ignores the alpha (RGBA 8888). Is there any tool to examine a PNG file and verify this kind of information? Does Photoshop have any options to ...

Replacing PNG images with transparent background in Internet Explorer

image1.png and image2.png are both with transparent background. <script type="text/javascript"> $(document).ready(function(){ $("img#test").click(function() { $(this).attr("src", "image2.png"); }); }); </script> <img id="test" src="image1.png"> The above code is supposed to replace image1.png with i...

How do I stroke a CGContext path with multiple random images

I want to stroke a CGContext path using three or four images, but randomly cycle through the images as I'm drawing the path. I want to draw the images INSTEAD!! of drawing the CGContext I am now. I have this code so far - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches anyObject]; CGPo...

DD_belatedPNG without editing the markup

I'd like to use DD_belatedPNG for a project, but I'm not allowed to edit the markup to add the following conditional comment that is required for the script to function: <!--[if IE 6]> <script src="DD_belatedPNG.js"></script> <script> /* EXAMPLE */ DD_belatedPNG.fix('.png_bg'); /* string argument can be any CSS selector */ /* ....

PNG transparency of backgrounds to submit buttons or inputs of type image

Hi bit of a silly question. Are there any png transparency issues with backgrounds to submit buttons or inputs of type image? Or do they behave fine just like img tags with a png image as the source. I understand for IE6 you need a hack for png transparency to work. ...

Java type that represents a PNG image?

What is a Java type which can hold a PNG implement and provide access to it's pixel buffer? ...

How to get better transparency with GIFs?

Is there any software, plugin or technique that would allow creating/exporting PNG-like GIFs with smooth transparent edges, at least for smaller images like bullets or buttons. I really have to use GIFs sometimes for IE6 so it'd would be great to know if such a tool exists? Thanks ...

How can I use graphical resources (stored in res\drawable folders) from NDK?

Hello! I need to use openGL in NDK, and I need to load and use some images (PNG), and maybe other files. These files are stored in res\drawable, res\drawable-hdpi, but I cannot access them with fopen()... There is a way to do this? Can somebody give me a piece of code for my problem, because it is quite urgent. Thank you very much, and...

How to get alpha value of a PNG image with PIL?

How to detect if a PNG image has transparent alpha channel or not using PIL? img = Image.open('example.png', 'r') has_alpha = img.mode == 'RGBA' With above code we know whether a PNG image has alpha channel not not but how to get the alpha value? I didn't find a 'transparency' key in img.info dictionary as described at PIL's website ...

PHP library for converting html to image?

Is there a free (or commercial) PHP library which would help me convert a piece of HTML to image? I googled it but haven't found anything. thanks in adv ...

PNG transparency without alpha channel

I am trying to create a transparent PNG image from a BufferedImage in Java. The PNG will be loaded into another piece of the software, that does not support the alpha channel. That should be fine, because, according to Chapter 8, section 5, part 4 of the PNG book, I can achieve transparency by specifying a pixel value to be transpare...

jquery .png crossfade script fails on IE7/IE8

Im trying to get two alpha-24 transparent .png files to crossfade into each other. I started this adventure by modifying a pretty decent little script (thanks to jqueryfordesigners.com): // wrap as a jQuery plugin and pass jQuery in to our anoymous function (function ($) { $.fn.cross = function (options) { retur...

Transperent png and swfobject in IE

Hello! I have a page with a transparent png that (background-repeat: repeat). The background works fine on all other pages. On this particular page is a flash music player. I believe the is causing the background to look weird in IE8. Is the player causing this? What can I do? URL to page: http://kingromeo.com/wordpress/media/ ...

Optimize .png images with PIL

All i need is create a .png image with transparent background, draw some text in black on it and save it using img.save('target.png', option='optimize') It looks like to save .png images in 32-bit mode automatically. Can I reduce the color depth while not make the output images looks much worse before saving? Since it contains only blac...

PNG optimisation tools

A while back I used a PNG optimisation service called (I think) "smush it". You fed it a weblink and it returned a zip of all the PNG images with their filesizes nicely, well, smushed... I want to implement a similar optimisation feature as part of my website's image upload process; does anyone know of a pre-existing library (PHP or Pyt...

Managing animated images in PHP

Hello! I would like to have some information about this topic. Everybody knows that it's possible to manage and even create images with PHPs gd-library, but is it possible to edit animated GIFs without losing the animation? Hope that someone is wise enough to answer this :) Martti Laine ...

Jquery png problem in IE

Hi, If you view this in IE7 or 8 you will see that the background, when fading in is black, then it rapidly disappoears. Is there a fix for this? http://nettuts.s3.cdn.plus.org/234_tooltip/Demo/index.html Many thanks in advance! C ...

How do I save a bitmap as a 16-color grayscale GIF or PNG in ASP.NET?

In ASP.NET C# I'm trying to save a bitmap image as an 16-color non-transparent grayscale image as either a PNG or GIF. I assume I have to create a palette and then somehow attach the palette to the image but not sure how to go about doing this. The source image is a 24-bit color Bitmap. ...

GDI+: Cannot load "Vista" icon (OutOfMemory)

Trying to load an icon with GDI+ using GdipLoadImageFromFile: Image image; String filename = "C:\Archive\-=Images=-\Microsoft\Vista\shell32\Icon_129.ico"; Status result = GdipLoadImageFromFile(filename, out image); returns the status OutOfMemory (3). You can also use the object wrapper form: Image image = new Image(filename, false)...