I have a Flash CS4 (Flash 9 ActionScript 3.0) project that compiles and runs perfectly on my machine.
However it is part of a big batch of fla's that I want to compile on another (faster) machine. When I copy the project (the fla and all actionscripts and assets files) to the faster machine, it's Flash CS4 compiler gives me compiler erro...
Hi All,
How can I use zlib library to decompress a PNG file? I have no idea how to read a PNG file. When I opened a PNG file in TextPad(a text editor), the data was not at all understandable. Is it because a PNG file is compressed?
Any help is greatly appreciated. I need to read a PNG file using a C program and gcc compiler.
Regards,...
In s Flex 3 app, I have canvas with a PNG image for a background. The image is the same width & height as the canvas. I also have some other controls in the canvas:
<mx:Canvas id="form" backgroundImage="@Embed(source='images/formBkg.png')" width="640" height="480" >
<mx:label .../>
<mx:label .../>
I print the canvas using th...
Is it correct that if we have a BufferedImage object in java, we could potentially write it out in ANY format using ImageIO.write (if we have a Writer object for the same)? I tried writing a BufferedImage object into a jpg file, it outputted an empty image file however when i tried writing it in to a png file, it worked fine.
...
Normally, when we want to load a texture for OpenGL ES with .png, we simply add the .png images into XCode. The .png files will be altered for optimization by XCode and these altered png files can loaded into OpenGL ES texture during the runtime.
However, what I am trying to do is quite different. I am trying to load a .png file that i...
hi people, i just want an Action to print a barcode image, but i can´t get this working in MVC, i just do the following:
public function barcodeAction() {
$this->_helper->layout->disableLayout();
$this->_helper->viewRenderer->setNoRender();
Zend_Barcode::render($_GET['barcodeType'], 'image', $_GET, $_GET);
}
but when I cal...
I created a 40px x 40px image in Adobe Illustrator CS4. I saved as an .ai file and then tried to export as a PNG.
Adobe Illustrator automatically crops the background and tightens the export to a rect around all the objects which if fine. In this case, I am not working edge to edge so my image is not quite 40px wide.
But, unfortunately...
Hi,
I want to get images ID's and creat from files a merged image according to the given ID's.
This code is called by ajax and return the image file name (which is the server time to prevent browser caching).
code:
if (isset($_REQUEST['items'])){
$req_items = $_REQUEST['items'];
} else {
$req_items = 'a';
}
$items = explode(',',$r...
I'm using a Mac. When I try creating a png with specific rgb values (i.e. 128,0,0), this is fine (I've tried using both GIMP and photoshop).
Now when I open the png file, the color looks slightly different. And when I use the DigitalColor Meter, the rgb values don't match anymore (the 128,0,0 file became 106,7,0).
What's going on?
Than...
I've got some custom metadata to put into a PNG file. It's being saved through libpng, and it's not difficult to write out a custom chunk. I just call png_write_chunk with the name, length and data. But I can't see how to get the data back out again. I'd expect there to be a png_read_chunk function that takes a chunk name and returns...
I am looking for a way to quickly determine if a PNG image has transparent features. Does anyone one know a simple way to detect this?
UPDATE: OK, is there a less complicated way then to pull out the PNG specification and hacking code?
...
Hey guys I've tried several tools (imagemagic, gif2png, Nconverter) to extract frames to make sprites from a .gif image that i have.
I get the .pngs just fine, but they'r not the same size, some are 50x65 some 43x65 some 50x70, Which really screws any attempts at a descent animation. So is there a way to prevent this cropping or program...
Scenario
I would like to save images with alpha transparency as .png and images without alpha transparency as .jpg (even if their original format is .png or .gif). How can I detect whether or not an image has alpha transparency using ImageMagick?
...
I have strange a memory corruption problem. After many hours debugging and trying I think I found something.
For example: I do a simple string assignment:
sTest := 'SET LOCK_TIMEOUT ';
However, the result sometimes becomes:
sTest = 'SET LOCK'#0'TIMEOUT '
So, the _ gets replaced by an 0 byte.
I have seen this happening once (repr...
Hello there!
After whittling down of the options we've encountered a problem with PNG's and ActionScript 3 (AS3).
When loading a PNG 8 or PNG 32 with alpha transparancy we're getting the following error reported in Flash:-
"Error #2124: Loaded file is an unknown type"
Now, we're dealing with some legacy images, and it appears as thou...
Hello,
I've got a problem making alpha PNGs with PHP GD. I don't have imageMagik etc.
Though the images load perfectly well in-browser and in GFX programs, I'm getting problems with Flash AS3 (actionscript) understanding the files. It complains of being an unknown type. But, exporting these files from Fireworks to the same spec works f...
Similar to this question http://stackoverflow.com/questions/1251416/png-transparency-problems-in-ie8
But the answer here was to remove opacity - but I can't remove opacity. How can it be made to work with opacity?
...
Hi there,
I'm trying to load a PNG image from JAR file when running JApplet.
The file is, I think, loaded properly - there are no errors.
However it is not displayed. img.png is placed in the same directory as MainClass.java file.
Here is the code:
InputStream imageURL = this.getClass().getResourceAsStream("img.png" );
byte[] bytes = ...
I'm writing game with a large amount of .png pictures. All worked fine. Than I added new activity with WebView and got memory shortage. After that I made some experiment - replace game .png images with ones that just fully filled with some color. As result memory shortage had gone.
But I suppose that Bitmap internally hold each pixel se...
I am looking for a way of generating PNG images of equations from LATEX source code embedded in templates. For example, given:
[% FILTER latex_display ]
\begin{eqnarray*}
\max && U(x,y) \\
\mathrm{s.t.} && p_x x + p_y y \leq I \\
&& x \geq 0, y \geq 0
\end{eqnarray*}
[% END %]
I would like to get the output:
<div class="latex display...