loading members at runtime 2004-02-28 - By Neto
Back > More of a problem is there appears to be no way to determine if a bitmap > member has an alpha! > Am I missing a function? > Haven't tested importfileinto to see if it automatcially sets the usealpha > property (which member.filename doesn't). If it did then that could be used. > However I got a workaround based on filetype of the bitmap. If its JPG it > can't have an alpha, if its tif, png, or something else, then it can have an > alpha chanel, and will be deemed as such. To be honest I think this works > better as all non-alpha bitmaps need to be jpeg'd to reduce filesize, but it > would still be nice to check if a bitmap actually had an alpha. > > Noisecrime 2004
Recently in the list it was revealded that when you do:
isEqual = (imageA = imageB)
Director will do a pixel compare (!). So you could compare the image's alpha against a black 8-bit #greyscale image.
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
|
|