SWFBitmap->__construct()
Opis
class SWFBitmap {SWFBitmap __construct ( mixed file [, mixed alphafile] )
}
Ostrzeżenie |
Ta funkcja jest w stadium EKSPERYMENTALNYM. Oznacza to, że zachowanie funkcji, jej nazwa, w zasadzie wszystko udokumentowane tutaj może zostać zmienione w przyszłych wersjach PHP bez wcześniejszego uprzedzenia. Używaj tej funkcji na własne ryzyko. |
Creates the new SWFBitmap object from the given
file
.
Parametry
For both parameters you can provide a file pointer returned by fopen() or the image data, as a binary string.
file
Notatka: We can only deal with baseline (frame 0) jpegs, no baseline optimized or progressive scan jpegs!
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.
alphafile
An MSK file to be used as an alpha mask for a JPEG image.
Przykłady
Przykład 2. Using an alpha mask
|