png

How to properly transform a UIView with a custom drawRect method

Hi I've written a UIView subclass which adds a nice soft shadow underneath a png image. I'm overriding the drawRect method to draw the image and add the shadow. Now, when I try to do a scale/rotate-affine transform on the UIView (by calling the .transform method), I'm not getting the result I'm looking for due to the initial "flattenin...

How to draw 2 PNG Images to the screen at the same time

I'd like to know how to draw two PNG pictures onto the screen. My XML layout: (named paperxml.xml) <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/layoutid" android:layout_width="fill_parent" android:layout_height="fill_parent" android:o...

jpeg to png conversion

hi, I am working on images in iPhone. There are lots of jpeg images which range from 35kb to 50kb. I may need to transfer this over internet which comes around 6 mb. I tried to change a 35kb jpeg image to png. The actual size got increase jpeg was 56.1kb and png is 576 kb. I used mspaint to change the format. jpeg to png should actually...

MIME type warning in chrome for png images

Just ran my site in chrome and suprisingly it comes up with this warning for each of my .png images: Resource interpreted as image but transferred with MIME type application/octet-stream. Anyone seen this before? Regards ...

iPhone SDK: accessing indexed color PNG images

Hello, I'm interested in loading indexed-color PNG images in my iPhone application. Once they're loaded, I want to access the images on a per-pixel basis. In particular, I want to get the index of the color (rather than the color itself) of individual pixels. Unfortunately, there does not seem to be a way to access pixels via the UIIma...

get rid of some parts of png in java

In my program,I am producing a png from a panel,but I want to get rid of the bounding box of this panel and to be more focused to the object in the panel.To do so, I want to get rid of the peripheral parts of png, and produce only the center of it.How can i do that ? ...

How can i use GDI+ to save a HBITMAP

I want to save my created image as a PNG or JPEG file with the help of GDI+ but i can't find a way to do this. Seems that there is no way to create a non file based Image and fill it with a bitblit from the HBITMAP. Or do i miss something? ...

How do I make Tkinter support PNG transparency?

I put in a partially transparent PNG image in Tkinter and all I get is this How do I make the dark triangle on the right clear? (like it's supposed to be) This is python 2.6 on Windows 7, btw. ...

How to edit an PNG image per pixel via cli?

Say I have an PNG image where I want to change certain pixels to, say, black. How would I do that? My guess is that I should take the ImageMagick route. But how would I change, say, pixel ten from the top and from the left to black? To, say, 2% grey etc? EDIT: Since the comment field doesn´t work for code, this addition is directed t...

Pdfcreator print file to multiple images (.png)

I am using pdfcreator(http://www.pdfforge.org/pdfcreator). It installs a virtual windows printer that saves the file being printed into the desired format. I want to save my printed documents as multiple image files. (.png). I configured the auto save option in pdf creator to automatically save in .png format when a file is sent to the p...

Why is this code not accepting this png images transparency?

I've isolated the cause of the problem to be the image, since the code seems to work with other png images with transparency. However, it doesn't seem to work with the one image I need it to. This would be of great help seeing as I'm trying to make a nice shaped window. The image: The code: import wx class PictureWindow(wx.Frame):...

What C library allows scaling of ginormous images?

Consider the following file: -rw-r--r-- 1 user user 470886479 2009-12-15 08:26 the_known_universe.png How would you scale the image down to a reasonable resolution, using no more than 4GB of RAM? For example: $ convert -scale 7666x3833 the_known_universe.png What C library would handle it? Thank you! ...

Internet Explorer PNG CSS Problem with Opacity

Hey Guys, I have a very strange problem that I cannot seem to overcome. When I overlay text on top of a to that have a PNG image and also has an Opacity, the text itself becomes transparent. I've tested this in IE7, Firefox, Chrome, Safari, and seems like IE 7 just will not want to work. To see the problem, visit http://yask.me ...

Replacing image extensions in jQuery, go from .png to .gif on the fly

So, I'm using CSS3 in order to create sidebar boxes in my site design, this works nice and dandy. Using http://css3pie.com in order to create the effect in IE. Again, nice and dandy. Now, comes my issue - For each relatively positioned module, there is an absolutely positioned icon within it, that is set to being top: -20px in order t...

PHP GD2: how to maintain alpha channel transparency and correct gamma

I was intrigued by this discussion of image scaling and subsequently found out that the PHP code I'm using to create thumbnails from uploaded images suffers from the same problem. I decided to try the PHP fix posted near the bottom (converting gamma from 2.2 to 1.0, resizing the image, converting gamma back from 1.0 to 2.2). This works t...

create PNG files for button backgrounds (for use in iPhone) -- either by tool, or write my own objC program

The kind of thing I want to do would be to write a program that takes as input top color, bottom color, and button dimensions. The program would then put in a border and spit out the button. I found Da Button Factory which is not bad, but also not quite good enough for a couple of reasons: (1) I want multiple borders, i.e. a black ou...

How can I get png image RGBcolors in delphi 2009

I have a cipher encoded as a color series in a png image the image is RGB-colored but the code is ciphered only in the green byte How can I get the RGB colors in this 1x84 pixel image? ...

Write metadata to PNG image in .NET

I see more than a few questions asking how to read metadata from an image, but I haven't seen as many asking how to write metadata. Basically, I need to add one item of metadata ("ImageDescription") to a PNG image I'm generating dynamically (creating a Bitmap object and procedurally generating all the content in it). What would be the ...

FreeImage - Write zTXt tag to PNG

This is really causing me a headache. For some reason or another, I can add a specific tag to a PNG file, but it's not adding the way I'd like and I don't know how to get it to write the way I want Given the code; Dim FImage As FIBITMAP = FreeImage.CreateFromBitmap(Image) Dim FTag As New Metadata.MetadataTag(FREE_IMAGE_MDMODE...

jquery tabbed interface breaks when using images

hello all, using jquery to create a tabbed interface. coding is quite typical: html: <div id="tabbed-interface"> <ul> <li><a href="#option1">Option1</a></li> <li><a href="#option2">Option2</a></li> <li><a href="#option3">Option3</a></li> </ul> </div> jquery: $(document).ready(function(){ $('#tabbed-interface li:first').addClass('ac...