If you're trying to use an image generated by PHP, remember that imagejpeg outputs an interlaced image by default, which is NOT accepted by SWFBitmap.
You have to use imageinterlace($ImageHandle, 0); to make it compatible.
![]() | SWFBitmapDescriptionSWFBitmap swfbitmap ( mixed file [, mixed alphafile] )
swfbitmap() creates a new SWFBitmap object from the Jpeg or DBL file in file. alphafile is a MSK file to be used as an alpha mask for a Jpeg image. Both parameters can be fopen() resources or binary strings.
SWFBitmap has the following methods : swfbitmap->getwidth() and swfbitmap->getheight(). You can't import png images directly, though- have to use the png2dbl utility to make a dbl ("define bits lossless") file from the png. The reason for this is that I don't want a dependency on the png library in ming- autoconf should solve this, but that's not set up yet. And you can put an alpha mask on a jpeg fill.
![]()
julien / at / theoconcept.com
30-Jan-2006 06:36
If you're trying to use an image generated by PHP, remember that imagejpeg outputs an interlaced image by default, which is NOT accepted by SWFBitmap.
ukocolu at yahoo dot com
09-Apr-2002 03:45
You may want to use flashwriter that is written by Stefan Schler an excellent image2swf converter.
lievenstandaert at hotmail dot com
16-Aug-2001 02:45
... that is, unless you're using the version of the ming library distributed with php 4.0.6, in that case go with the manual
hotkey at hehe dot com
22-May-2001 02:52
To insert bitmaps, don't use the as syntax given in this documentation, due to OPAQUE changed the usage of SWFBitmaps: You need to give binary data as argument! In addition to that, you can now just "swf->add()" Bitmaps; you don't need to create a rect-shape and fill it.
| ![]() | ||||