png

Mask white color out of PNG image on iPhone

I know that there are already 2 relevant posts on that, but it's not clear... So the case is this...: I have a UIImage which consists of a png file requested from a url on the net. Is it possible to mask out the white color so it becomes transparent? Everything I have tried so far with CGImageCreateWithMaskingColors, returns a white i...

Direct 2D gnuplot PNG animation?

Can anyone please confirm that yes/no Gnuplot 4.5 (on CVS) can output 2D animated PNG files? I have numerous datasets but one line that I'd like to show iteratively in 3 different places in my graph. Can this be done directly from gnuplot or is this something that would need to be animated externally from multiple frames? ...

PHP GD PNG - Transparent text is pretty rigid

I'm using a PHP script that I found a while back that lets you specify text in a GET variable and it will convert it to a transparent PNG. This allows me to use non web safe fonts in my websites without having to manually convert each piece of text to an image. I've run into a slight problem, though, as seen here: http://imagebin.ca/vie...

Reading Alpha of a PNG Pixel. Fast way via pure Python?

I am having an issue with an embedded 64bit Python instance not liking PIL. Before i start exhausting more methods to get a compiled image editor to read the pixels for me (such as ImageMagick) i am hoping perhaps anyone here can think of a purely Python solution that will be comparable in speeds to the compiled counterparts. Now i am a...

How to show animated image from PNG image using javascript? [ like gmail ]

First of all,check out this image Gmail uses this image to display the animated emoticon. How can we show such animation using a png image? ...

Convert bitmap to PNG or JPG using Objective C

Anyone knows how to convert a bitmap to PNG or JPG using Objective C assuming I have CGImageRef imageRef; ...

How does the Mac OS X Finder recognize a PNG file?

I have a file which was originally named 'foo' in the Finder. If I 'get info' for the file, the Finder recognizes it as "Kind: Plain text". If I rename the file as 'foo.png', Finder then recognizes it as "Kind: Portable Network Graphics image". If I rename the file as 'foo', Finder still recognizes it as "Kind: Portable Networks Graph...

create image cache - large png images

Hi all I am a first time poster. I have a problem that seems very common to a lot of people but I can't seem to find or decipher an answer anywhere. The game I'm making has 3 rather large sprites on screen (230 high) x various widths. Each sprite has 3 1024x1024 character sheets where the frames of animations are taken from. I've ex...

PHP gdLib 8-Bit PNG with alpha

Hi, how is it possible to save my image, created with gd, as an png-8? it saves as gif with transparent channel well - but I want to use png-8. Best Regards, Beerweasle ...

IE 6 PNG problem

Having trouble getting the top left background suitable in IE 6, this is the JS im using, it works for everything else on the page but not this :( http://www.naomisalsi.com DD_belatedPNG.fix('#navigation, .logo, #contenttop, #content, #contentbottom, #flowerbottom, body'); ...

JQuery UI: Part of a negative margins image disappears if I animate it.

Hi, I'm doing an animate with JQuery UI. I've go an icon which I want to stick out over the edge of the div, so I'm using negative margins. The animation resizes the div and changes the background color. However, when I animate the div the areas of the image outside the div (in the neg margins) disapear for the duration of the animat...

Serving PNG images over http to Three20 iPhone app

I'm trying to serve up png images from a Linux (c++ / Qt4.5.x) server daemon to an iPhone application that is using the Three20 framework - specifically I want to use the TTThumbsViewController view. I managed to make any web browser view images with the following returned in my daemon when it "GET"s a request: QTextStream os(socket); ...

How to create semi-transparent image using imagemagick

I have a hex (i.e. #FF0000) color and want to generate 50% transparent 50x50 image using imagemagick from command line. ...

PNGs and UIImage Optimisation

Hi there, Is it better to have a PNG, say 320px x 44px and display it once, or to have a PNG that is 320px x 4px and use [UIColor colorWithPatternImage:]? I know that the iPhone handles PNGs well and decompresses them, so in terms of memory, would it be best to use the smallest possible images, and in this case, use the UIColor method ...

PNG tranparency help in ie6!!

hi!! i've a problem with png transparency in IE6.. below is the code which needs to be fixed <input type="image" alt="rtf" src="/components/i/images/icons/rtf.png"/> i saw some posts on this forum but i can't understand clearly.. can anyone walk me through the process of fixing it? thankx.. ...

jQuery fadeIn IE Png Issue when loading from external

I am loading data from external html files within my domain into a div on my webpage using a load content method in jQuery. I take the div out of the new page whilst hiding the div in the current page by fading this out and fading the new one in. There is a png image in both of these divs and it is creating horrid black blobs in IE, work...

Drawing Transparent Images

I'm writing a CSS sprite engine in C#, however I'm having a few issues. I create the master image, set all the properties to that then iterate the sprites and draw those to the master image. However when I come to save the master image it only appears to be just the empty master image with transparent background and none of the sprites. ...

How to represent binary transparency?

Lately I've been interested in representing uncompressed bitmaps in memory. However, one thing I'm not sure how to implement properly is binary transparency. E.g., I start out with something like this: struct RGBPixel { uint8_t red; uint8_t green; uint8_t blue; }; struct bitmap { struct RGBPixel *data; size_t width; size_t height...

How to encode PNG to buffer using libpng?

I'm currently using the following to write a PNG to a file: #include <png.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> /* Pixels in this bitmap structure are stored as BGR. */ typedef struct _RGBPixel { uint8_t blue; uint8_t green; uint8_t red; } RGBPixel; /* Structure for containing decompressed bitmaps. ...

Fixing hidden png images in IE6

Hello , I am using Drew Diller’s DD_belatedPNG solution to fix the common problem of showing png images in IE6 browser and it works fine for visible PNGs. Currently i have a hidden JQuery Dialog that has some PNGs inside it, when user clicks on a link the dialog appears, and the PNGs inside that dialog appear not fixed in IE6. Is ther...