Are filter effects supposed to work with partially transparent image files? If I apply “filter.hue” to an image with transparency, the transparent area becomes black. Is it supposed to work like this or is it a bug?
My initial thoughts is this sounds like a bug. You should be able to change the hue on an object (like you could do by setting a fill color previously). Can you file a bug report on it please?
Thanks
Rob
I just filed a bug report. To clarify: The “filter.hue” changes the hue as expected. The problem is that transparency is lost in the process. Previously transparent part of the image becomes black with this filter. Tested only in the simulator.
Can you post the bug report number here?
Case 27767
This will be fixed in the next daily build: 2061 or after
Thanks! Works perfectly now! Will definitely use filters in my next app!
If we’re asking if aspects of filter effects are bugs… I’ve been writing some stuff to apply filter effects to photos from the camera,
and am running into filter bugs it looks like… Two examples are sharpen Luminance and Vignette. (Note that the newImage objects being processed are natively from 640x960 – >1536x2048, ie up to the max photo size corona returns from the camera activity - generally pretty large).
Sharpen Luminance seems to only apply to the top 1/4 of the screen (strip across the top) and right 1/4 (strip down the right side).
http://www.vipah.com/sharpen.PNG
Vignette works ok normally, but if I scale it a little and translate the edges outside of the screen (if the user is zooming/panning the image for example), it gets flaky and all kinds of polygon /clipping errors occur causing what should be the nicely fading vignette border to become shifting large black polygons as the image translates coordinates.
My initial thoughts is this sounds like a bug. You should be able to change the hue on an object (like you could do by setting a fill color previously). Can you file a bug report on it please?
Thanks
Rob
I just filed a bug report. To clarify: The “filter.hue” changes the hue as expected. The problem is that transparency is lost in the process. Previously transparent part of the image becomes black with this filter. Tested only in the simulator.
Can you post the bug report number here?
Case 27767
This will be fixed in the next daily build: 2061 or after
Thanks! Works perfectly now! Will definitely use filters in my next app!
If we’re asking if aspects of filter effects are bugs… I’ve been writing some stuff to apply filter effects to photos from the camera,
and am running into filter bugs it looks like… Two examples are sharpen Luminance and Vignette. (Note that the newImage objects being processed are natively from 640x960 – >1536x2048, ie up to the max photo size corona returns from the camera activity - generally pretty large).
Sharpen Luminance seems to only apply to the top 1/4 of the screen (strip across the top) and right 1/4 (strip down the right side).
http://www.vipah.com/sharpen.PNG
Vignette works ok normally, but if I scale it a little and translate the edges outside of the screen (if the user is zooming/panning the image for example), it gets flaky and all kinds of polygon /clipping errors occur causing what should be the nicely fading vignette border to become shifting large black polygons as the image translates coordinates.