SWFBitmap
$b = new SWFBitmap(fopen("filename", "r") [, fopen("alphafilename", "r")]);
b = SWFBitmap(filename [, alphafilename])
SWFBitmap *b = new SWFBitmap(filename [, alphafilename]);
Create a new SWFBitmap object from the given Jpeg or DBL file. alphafilename indicates a MSK file to be used as an alpha mask for a Jpeg image.Note: we can only deal with baseline (frame 0) jpegs, no baseline optimized or progressive scan jpegs!
SWFBitmap b = newSWFDBLBitmap(file *);
SWFBitmap b = newSWFJpegBitmap(file *);
SWFBitmap b = newSWFJpegWithAlpha(file *, alphafile *);Create a new SWFBitmap object.Note: it can only deal with baseline (frame 0) jpegs, no baseline optimized or progressive scan jpegs! Also, greyscale jpegs come out munged. We're working on it..
$width = $b->getWidth();
width = b.getWidth()
width = b->getWidth();
width = SWFBitmap_getWidth(b);Returns the bitmap's width in pixels.
$height = $b->getHeight();
height = b.getHeight()
height = b->getHeight();
height = SWFBitmap_getHeight(b);Returns the bitmap's height in pixels.
Jpeg example
DBL example
Jpeg with alpha mask example
DBL with transparency
All content Copyright (C) 2000-2002 Opaque Industries except where noted otherwise.