Manuál PHP | ||
---|---|---|
Předcházející | Další |
SWFBitmap->__construct()
Popis
class SWFBitmap {SWFBitmap __construct ( mixed file [, mixed alphafile] )
}
Varování |
Tato funkce je EXPERIMENTÁLNÍ. Chování této funkce, její název a všechno ostatní, co je zde zdokumentováno, se v budoucích verzích PHP může BEZ OHLÁŠENÍ změnit. Berte to v úvahu a používejte tuto funkci na vlastní nebezpečí. |
Creates the new SWFBitmap object from the given
file
.
Seznam parametrů
For both parameters you can provide a file pointer returned by fopen() or the image data, as a binary string.
file
Poznámka: 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.
Příklady
Příklad 2. Using an alpha mask
|
Předcházející | Domů | Další |
SWFBitmap | Nahoru |