png

Java applet - saving an image in a png format

Hi, I am creating a simple applet for avatar-making. You can choose face, hair, eyes, etc and then save it to a disc as a png file. The simple version (without the interface for the simplicity purpose) looks like this: import java.awt.*; import java.applet.*; import java.net.*; public class Example extends Applet { Image my_gif; I...

DD_belatedPNG.js - how to access the vml object? this is for a PNG image-swap.

I am trying to use Drew Dillard's awesome DD_belatedPNG fix + jQuery to achieve a run-of-the-mill image-swap on hover -- but with PNGs, and to work on IE6. Example: <a id="thelink" href="blah.html"><img src="f-u-ie6.png" /></a> Since DD's script sets the visibility of the original image to "hidden", you can't effectively hover over it....

Is it possible to convert html (uiwebview) on the iphone into pdfs, or pngs?

I'd like to be able to download a web page and then save it as a pdf, or png (or save it locally with all the html, image and css etc files). This is so the page can be viewed without an internet connection. Is there a standard way to do this? ...

transparent png using wpf in VS2008

Hi, I want make a UI that is semi transparent in WPF VS2008, so I made my form transparent and I want to show a semi transparent png (Which includes "holes") on top of it. How do I show the semi transparent png? Semi transparent, meaning it has holes you can see through. Also how can I get this done in C#, without using WPF. Thanks. ...

IE7 Displays Whitespace afer png

I have a div that contains a PNG background-image. After the div is displayed on my web page in IE7, there is a whitespace between the div and footer. All other browsers (incl. IE8) display the PNG correctly. Any ideas on a resolution would be appreciated? ...

PNG losses transparency when used as a link.

I have an image over a table that has been style with CSS. When I have my image on the table without a href it is fine, once I apply an href the transparency is no longer working. Any way around this? Table css table.list_data { background-color:#F3F3F3; border:1px outset #A1A1A1; border-collapse:collapse; border-spacing:2px; font-fami...

Problem with PNG images in C#

Working in Visual Studio 2008. I'm trying to draw on a PNG image and save that image again. I do the following: private Image img = Image.FromFile("file.png"); private Graphics newGraphics; And in the constructor: newGraphics = Graphics.FromImage(img); Building the solution gives no errors. When I try to run it, I get this: A ...

Command prompt convert png to swf

Hi, I want to let a user upload a PNG-file with alpha transparency and have it compiled by the server to a swf-file with jpeg compression on the embedded PNG-file. How can I make this happen? I thought first I'd just construct a class and compile it with Flex Framework, but Flex does not compress the embedded PNG-files. You who have...

How do I blit a PNG with some transparency onto a surface in Pygame?

I'm trying to blit a PNG image onto a surface, but the transparent part of the image turns black for some reason, here's the simple code: screen = pygame.display.set_mode((800, 600), pygame.DOUBLEBUF, 32) world = pygame.Surface((800, 600), pygame.SRCALPHA, 32) treeImage = pygame.image.load("tree.png") world.blit(treeImage, (0,0), (0,0...

Using GDI+ to make 'PNG with added CMYK' ?

I want to create a PNG file from a System.Drawing.Bitmap with the colours defined using CMYK. I can create the PNG OK but how do I define 'with CMYK' ? I've looked at the encoderparameters argument to the save method but it seems to me they don't cover what I need ? Any pointers/samples appreciated. thanks ...

PNG background image in Firefox 3.5.4

Snippet of my CSS: #wrapper div.box { background: url('box-bg.png') left top repeat-y; } #wrapper div.box h2 { background: url('box-top.png') left top no-repeat; } That doesn't work. Instead of a transparent image it displays the image but with white space in place of transparent background. If I do: <img src="box-top.png" a...

PNG overlay makes asp hyperlink unclickable

I've managed to get a PNG overlay to appear over an asp:hyperlink image, but this now means the hyperlink is unclickable, is there a way around this ? <div class="ProductItem"> <div class="picture"> <asp:HyperLink ID="hlImageLink" runat="server" /> <div class="overlay"></div> </div> </div> .HomePageP...

Resize PNG in a ASP.Net App

I´m generating some PNG Diagrams for my Asp.net application. With PNG I reach the quality I need on the Website, but I also need to generate a Report and there for I have to Resize my Diagrams from 897x651 to 216x161. How can I achieve this, without losing too much of quality. I have tried : http://www.peterprovost.org/blog/post/Resi...

JQuery Cycle Plugin, SIFR and PNG Fix - strange behaviour in IE

Hi, I am using the JQuery Cycle plugin to flick through a bunch of divs with content in them. Everything is fine in FF and Chrome but in IE 6/7 the SIFR titles do not appear in any divs apart from the first in the cycle. Does anyone know what could be causing this?, I have notice that when I switch of the belated_png fix for IE6 every...

PVRTC compression increasing the file sizes of PNG

For iPhone game development, I switched from PNG format to PVRTC format for the sake of performance. But PVRTC compression is creating files that are much bigger than the PNG files.. So a PNG of 140 KB (1024x1024) gets bloated to 512 KB or more in the PVRTC format.. I read somewhere that a PNG file of 50KB got compressed to some 10KB and...

webdesign - jpg or png, which one is the best for web

Hi, I'm web developer for some time, and got used transforming all my designs into png file format in order to construct my webpages. Despite the fact that png, contrary to jpg, allows transparency in the images, is it a better sollution? The question regards page loading time and best webdesign practices, as well as file size versus ...

PNG transparency in Interface Builder

I'm adding an Image View in Interface Builder with a transparent PNG (A logo in the Navigation Bar) but the transparent pixels seems to render as white.. I searched for PNG in Interface Builder but no luck. any tips? ...

Which would you prefer? SVG, HTML5 or regen'd-PNG for graphs & charts?

I'm developing a new site that graphs some operational metrics. As such about a dozen charts/graphs will be displayed on the site. I want to be able to have them dynamically scale down (within reason) based upon the size of the browser. I'm debating the pros/cons of generating these as one of these options: SVG. Great for scaling b...

Transparent PNG as Background Image

Hello, I have an element with a transparent png as its background image - it's like a polaroid with the photo bit cut out so just the frame is showing. With this as the background I then want a standard image to sit behind the element that has the transparent png background - to fit inside the frame. i've tried setting z-indexing and ...

Internet Explorer PNG DOM Loaded Images

I have a site setup using transparent PNG images that, of course, don't want in IE without the transparency fix applied. Well, the fix is applied but it still isn't working. div, img { behavior: url('/path/to/fix/iepngfix.htc'); } I know it's loading the HTC file correctly as an alert(1) fires upon page load. The images, however, aren'...