Page 1 of 1
[24 Mar 2010] MacOSX (x86) Bug in table.Alpha when using: ret, table = IsPicture(pic$)
Posted: Sat Jun 13, 2020 5:32 pm
by PEB
Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 24 Mar 2010 23:40:07 -0000
If I use the following code in a MacOSX(x86) executable, I have problems.
table.Alpha returns True when the picture does NOT have an alpha-channel.
[27 Mar 2010] Re: MacOSX (x86) Bug in table.Alpha when using: ret, table = IsPicture(pic$)
Posted: Sat Jun 13, 2020 5:32 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 27 Mar 2010 12:54:53 +0100
If I use the following code in a MacOSX(x86) executable, I have problems.
ret, table = IsPicture(pic$)
table.Alpha returns True when the picture does NOT have an alpha-channel.
Hmm, can't reproduce this here. Are you on Snow Leopard maybe? What file format is the picture in? PNG? JPEG?
[27 Mar 2010] Re: MacOSX (x86) Bug in table.Alpha when using: ret, table = IsPicture(pic$)
Posted: Sat Jun 13, 2020 5:32 pm
by PEB
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 27 Mar 2010 15:25:51 -0000
Hmm, can't reproduce this here. Are you on Snow Leopard maybe?
Yes, v10.6.2
What file format is the picture in? PNG? JPEG?
I'm getting this problem with every JPEG I try.
[28 Mar 2010] Re: Re: MacOSX (x86) Bug in table.Alpha when using: ret, table = IsPicture(pic$)
Posted: Sat Jun 13, 2020 5:32 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 28 Mar 2010 21:31:04 +0200
I'm getting this problem with every JPEG I try.
Ok, then Apple obviously changed something in their APIs because in 10.5 it's working correctly. I have to use a different mechanism to detect an alpha channel now because 10.6 seems to return 32bit data for JPEGs although that contains only 24bit pixels.