Questions tagged [png]

PNG (Portable Network Graphics) is an image file format designed to store raster graphics. It is associated with ".png" file extension. Use this tag for questions involving this specific format.

PNG was created to improve upon and replace (Graphics Interchange Format) as a losslessly compressed image file format not requiring a patent license.

PNG supports palette-based images with transparency, true colour images with or without alpha channel (RGB, RGBA), and grayscale images; PNG supports channel depths from 1-bit to 16-bit per channel. Interlacing, which allows the progressive display of partially downloaded images, is implemented via the Adam7 algorithm. Animation is supported by way of the extension.

More information

6735 questions
3
votes
1 answer

Offline plotting of map coordinates on static maps of Google

History: Extracted raster data from the static Google map png, loaded it on the R device through ggimage. library (png) library (ggmap) rasterArray <- readPNG ("My.png") x = c (40.702147,40.718217,40.711614) y = c…
Aquarius_Girl
  • 21,790
  • 65
  • 230
  • 411
3
votes
2 answers

Using CSS to show gradient as well as an image

Based on the very simple example I found here: . The css should show both the transparent png and the gradient behind that. I'm wondering if the issue might be related to how the css is constructed. body…
3
votes
1 answer

Android Bitmap Decoding Progress

Hypothetical question: Let's say I want to decode a Bitmap from file/stream/anything using BitmapFactory. Is it possible to get the decoding progress (as integer)? I want to put the progress in a ProgressBar. Or is it even possible but not using…
3
votes
1 answer

HTML5 Canvas to PNG zeroes all channels when alpha transparent

I have a Uint32Array I am trying to convert to a texture for WebGL. To do this I'm writing the array as RGBA values on a Canvas and getting a base64 encoded PNG from the canvas to send as a texture. Whenever I set a pixel value to have an alpha of…
fuzic
  • 2,492
  • 16
  • 22
3
votes
0 answers

Stretching an SVG Image when converting it to a PNG/JPEG using batik rasterizer?

I am currently trying to render some .svg images to .png/.jpg images using the batik rasterizer library. If I try to convert an image within its aspect ratio, everything works fine, but when I try to change the aspect ratio(let's say the vector…
Corsair
  • 1,044
  • 3
  • 10
  • 25
3
votes
2 answers

PNG files structure

I've already learned how to generate BMP images based on the BMP files structure (here and here). Now I'm looking for the PNG file structure but I haven't found any good explanations. Do you know where I can find this explanation with schemes as…
Danilo Valente
  • 11,270
  • 8
  • 53
  • 67
3
votes
3 answers

Bitmap.Save to save an icon actually saves a .png

I need to write a program that will generate 108 combinaisons of icons (standard windows .ico files) based on a tileset image. I use the class System.Drawing.Bitmap to build each combinaison, and I save them like this: Bitmap IconBitmap = new…
Benlitz
  • 1,952
  • 1
  • 17
  • 30
3
votes
1 answer

Creating a bitmap from png file stored at sdcard (Android)

Im trying to create a Bitmap from a Png file stored on the SD card and then set that Bitmap in an imageView. But its not working. Here's the code: import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import…
Michiel T
  • 537
  • 9
  • 23
3
votes
0 answers

BitmapFactory.decodeStream cannot decode png type from ftp

What was my mistake? How I show png from FTP? I'm newby for android and try to show image from difference connection/source. Then I already show image which load from drawable and HTTP. Now, I'm try to show from FTP, I get message "---…
HATCHA
  • 600
  • 1
  • 8
  • 15
3
votes
1 answer

Using ps2pdf on EPS files with PNG used for bitmaps?

We're currently using ps2pdf to convert EPS files to PDF. These EPS files contain both vector information (lines and text) and bitmap data. However, by default ps2pdf converts the bitmap components of these images to JPG as they're embedded within…
Will Robertson
  • 62,540
  • 32
  • 99
  • 117
3
votes
1 answer

how to convert RgoogleMaps PNG to SpatialGridDataFrame in R?

I have derived a 'static map' using the GetMap() function from the RgoogleMaps package. I can save it (MyMap) to my harddrive as a PNG. However, then it looses the spatial reference. Has anybody succeeded in creating a spatial object (in the sense…
Jens
  • 2,363
  • 3
  • 28
  • 44
3
votes
1 answer

AS3 load bitmapData from JPG/PNG bytearray synchronously

Given a ByteArray containing JPG or PNG data, is there a way to retrieve synchronically a corresponding BitmapData in Adobe AIR?
Mat
  • 4,281
  • 9
  • 44
  • 66
3
votes
2 answers

PHP PNG 24 bit clean Transparency

I have been trying to get a PNG to upload with a clean, 24 bit alpha transparency. After doing a lot of research, I have managed to get it sort of working, however the transparency seems to be low quality 8 bit as you can see here in this…
Chris
  • 833
  • 2
  • 17
  • 37
3
votes
2 answers

Convert All to JPG in C#

I have a function like the following: // Convert To JPG // public string AlltoJPG(FileInfo foo) { // Get file extension string fileExtension = foo.Extension; // Get file name without extenstion …
Berker Yüceer
  • 7,026
  • 18
  • 68
  • 102
3
votes
2 answers

How to disable transparency for PNG

How to completely disable transparency of given PNGObject? By the way I am using PNGImage unit of Version 1.564.
Little Helper
  • 2,419
  • 9
  • 37
  • 67
1 2 3
99
100