On Tue, Oct 27, 2009 at 10:41 AM, Christopher Wright <[email protected]> wrote:
> Andrew, do you have a sample app that demonstrates the bug outside of QC?
>  if so, that's a CoreImage bug.


I just tested interactively using Ruby-Cocoa and the CIFilter returns
a 0x0 image if transparent, and an infinite extent image if opaque:


>> require 'osx/cocoa'
=> true
>> color = OSX::CIColor.colorWithRed_green_blue_alpha(0,0,0,0)
=> #<OSX::CIColor:0x8191f4d4 class='CIColor' id=0x1015c0cd0>
>> cic = OSX::CIFilter.filterWithName("CIConstantColorGenerator")
=> #<OSX::CIConstantColorGenerator:0x8191be4c
class='CIConstantColorGenerator' id=0x10147c8d0>
>> cic.setDefaults
=> nil
>> cic.setValue_forKey(color, "inputColor")
=> nil
>> image = cic.valueForKey("outputImage")
=> #<OSX::CIImage:0x81916320 class='CIImage' id=0x101516240>
>> image.extent
=> #<OSX::NSRect x=Infinity, y=Infinity, width=0.0, height=0.0>
>> color = OSX::CIColor.colorWithRed_green_blue_alpha(0,0,0,1)
=> #<OSX::CIColor:0x81911ec4 class='CIColor' id=0x1014abb80>
>> cic.setValue_forKey(color, "inputColor")
=> nil
>> image = cic.valueForKey("outputImage")
=> #<OSX::CIImage:0x8190d518 class='CIImage' id=0x1015d3720>
>> image.extent
=> #<OSX::NSRect x=-8.98846567431158e+307, y=-8.98846567431158e+307,
width=1.79769313486232e+308, height=1.79769313486232e+308>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to