png

iphone png file upside down

Hi All, I'm trying to draw an image to the screen in a UIView subclass I'm making. It's all working perfectly expect for the fact that my image is coming out upside down. I'm using the code... CGFloat height = CGRectGetHeight(rect); CGFloat width = CGRectGetWidth(rect); UIImage *thumbImage = [UIImage imageWithContentsOfFile:[[NSBundl...

How to get around IE8 32k limit on data:uri on base64 encode?

I need to send an html response to the browser containing a 1920x1080 png. It's a screenshot taken by an html query. I encode the image in base64 and sends it embedded as an text/html content-type. Something simple like : <HTML><HEAD>Whatever</HEAD><BODY><img src="data:image/png;base64,data"/></BODY></HTML> It works fine on FF and Ch...

Transparent PNG image not looking nice...

I have an image that has a fairly large shadow around it and its background is transparent. I have saved it as a PNG file from photoshop and am using it in an ImageView through xml. This results in the shadow having a banding effect and just doesn't look nice. Not too sure what to do... ...

iphone .png image not showing up in device

ok, i set some .png files image as uimage in my table cell. they show up nicely when i run them using iphone simulator. when i run them in my device, they up not show up. what seems to be the problem? i only "error" i got is unable to debug when i install my app to my device, which shouldn't be a problem as i never set for debug. does ...

xcode img_data_lock Problem with Backgroung images in Scrollview

I try to do a magazine app containing a horizontal Scrollview with 15 Pages each containing a vertical ScrollView containing up to 15 Pages. For this I took apples Photoscroller-Example-Code (http://developer.apple.com/iphone/library/samplecode/PhotoScroller/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010080-Intro-DontLinkElementID_...

AyncFileUpload cannot load png file

I have asp.net project that uses an AsyncFileUpload to allows user to upload local files to a database. I occasionally have a problem uploading files getting a message "Server Response Error unknown server error. Do you have to see the response page", I click Ok get Unhanded exception message and it repeats Server Response Error unknown ...

BIG header: one jpg or several png?

I've read some of posts here about png/jpg/gif but still I'm quite confused.. I've got a big header on my website : width:850px height:380px weight:108kb And it's jpg. A woman + gradient + some layers on top and behing her.. Do you think 108kb it's too much? I was thinking about cut it to png pieces..Would that be a bad idea? What's y...

Is there a thread safe way to create PNG images in pre-4.0 iOS?

I'm pretty sure that UIImagePNGRepresentation([UIImage imageWithCGImage:imageRef]) is the cause of random-looking memory leaks when done in a background thread (it causes leaks that trace back to CGContextDrawPDFPage!). Now, everywhere else on the internet says I should use CGImageDestination, which isn't available until iOS4. Is the...

reading image from document folder

hi, if i place a image.png file in my resource, iphone will be able to read it. if i place a image.png file in iphone document folder it doesn't read? i am sending the image over from my server, into the document folder. no problem with that. i thought iphone will auto find the image file either in resource folder or document folder? ...

AlphaImageLoader fix for PNG's works online but not locally

I use the AlphaImageLoader fix called supersleight with the following code: var supersleight = function() { var root = false; var applyPositioning = true; // Path to a transparent GIF image var shim = 'images/empty.gif'; // RegExp to match above GIF image name //var shim_pattern = /x\.gif$/i; var fnLoadPngs = function(...

Why is this PNG mis-colored on Linux?

My site uses a PNG for a transitional background. Here is the site on Firefox on Mac, and here is the same site on Firefox on Linux. As you can see, the PNG background displays in a duller green on Linux. Is this due to the gamma correction issues described here? How can I solve this problem? I have tried using a JPG and also a BMP, but...

PNG transparency not blended properly in iPhone app?

This is my first iPhone app in which I am importing images wholesale from Photoshop. Some aren't rendering properly. The following image is a white button with rounded corners; the transparency overall is being preserved, but the blending from the image to the transparent pixels results in a white edge around each corner: http://adamb...

Why a .png converted from a gnuplot postscript output, has transparent background?

I used gnuplot (4.2) to write a graph to a postscript file. But when I convert this .ps file to a .png file using the 'convert file.ps file.png' command, I get a png image which has no background (transparent). Why does this happen, and how do I get a png image with a white background? ...

Looking for a Flash component to display a pdf/word/png file in a web page

Hello, I'm looking for a Flash component to display a pdf/word/png in a web page. Something like Flashpaper : http://www.adobe.com/fr/products/flashpaper/ but Free. Can someone help ? Thanks in advance ...

How to preserve transparency in PHP GD on a PNG

I am using this code: <?php list($width, $height, $type, $attr) = getimagesize("terrain.png"); $canvas = imagecreatetruecolor($width, $height); $src = imagecreatefrompng("terrain.png"); if($_GET['glass'] == 1){ $src2 = imagecreatefrompng("rock.png"); } imagecopymerge($canvas, $src, 0, 0, 0, 0, $width, $height, 100); if($_GET[...

Flash PNG Quality on Tween

In Flash I have some PNG images, and I wish these images to become 50% larger on hover. However the tween I have used to make them larger distorts the quality of the images considerably. For the tween I am not using any external libraries and I am using a standard scaleX tween. Is there a way around this loss of quality? ...

VB6 PictureBox SavePicture - save picture as png?

With VB6 PictureBox, how do I save to the png format? ...

Boost GIL image constructors

Hi guys, I'm currently trying to figure out how to use the Generic Image Library included in Boost. Right now, I just want to use the library to store pixel data and use the Image IO to write PNGs. I'm having trouble understanding just how to set up the object however. The hpp says image(const point_t& dimensions, std::size_t al...

C++ - image format question

Hello! Is there any fast way to determine if some arbitrary image file is a png file or a jpeg file or none of them? I'm pretty sure there is some way and these files probably have some sort of their own signatures and there should be some way to distinguish them. If possible, could you also provide the names of the corresponding rout...

Is there a way to find out about a png image transparency by reading the image header?

Is there a way to find out about a png image transparency by reading the image header? ...