JSwiff
flash movies the java way
JSwiff Forum
  Search   Recent Topics     Member Listing    Back to home page 
Register / 
Login 
png encoding using definebitslossless2  
Forum Index -> How Do I...
Author Message
Anonymous



I have been trying to encode png files (keeping their transparency value) into a swf file for some time now without success.
I am creating an AlphaBitmapData from an RGBA array.
The RGBA array is 176* 20 and is filled with [r=90,g=90,b=90,a=155]

I am then putting the AlphaBitmapData into a defineBitsLossless2 Tag.

However the RGBA values get garbled when the data is put into the swf file.
i.e. in some cases the b and a values get pixed up.

Any ideas?
Ralf



Joined: Jul 20, 2005
Messages: 127
Location: Germany
Offline

Please post (or email me) your code and the PNG you're using with this code, and I'll look into it.
Ralf



Joined: Jul 20, 2005
Messages: 127
Location: Germany
Offline

AlphaBitmapData contains RGBA values encoded differently (actually they are ARGB values). This bug is fixed as of JSwiff 8.0 alpha 2.
 
  Forum Index -> How Do I...
Go to:   
Legal notes
Powered by JForum 2.1.4 © 2005 - Rafael Steil