[24 Mar 2010] MacOSX (x86) Bug in table.Alpha when using: ret, table = IsPicture(pic$)

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
PEB
Posts: 576
Joined: Sun Feb 21, 2010 1:28 am

[24 Mar 2010] MacOSX (x86) Bug in table.Alpha when using: ret, table = IsPicture(pic$)

Post 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.

Code: Select all

ret, table = IsPicture(pic$)
table.Alpha returns True when the picture does NOT have an alpha-channel.
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[27 Mar 2010] Re: MacOSX (x86) Bug in table.Alpha when using: ret, table = IsPicture(pic$)

Post 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?
PEB
Posts: 576
Joined: Sun Feb 21, 2010 1:28 am

[27 Mar 2010] Re: MacOSX (x86) Bug in table.Alpha when using: ret, table = IsPicture(pic$)

Post 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.
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[28 Mar 2010] Re: Re: MacOSX (x86) Bug in table.Alpha when using: ret, table = IsPicture(pic$)

Post 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.
Locked