0

Colorize Bug

I haven't touched the YDK for some time, however, I remember there being a bug regarding the "colorize" property in the KONtx.element.Image object.

If I initially set the colorize property of an image, then a grayscale image is properly colorized. However, if I change the colorize value of the same object, all coloring was removed, and only the grayscale image is displayed as is. Basically, I could only set the colorize value once.

Has this issue been resolved in the latest YDK?

Thanks

by
3 Replies
  • QUOTE (Steve @ Mar 28 2011, 10:09 AM) <{POST_SNAPBACK}>
    I haven't touched the YDK for some time, however, I remember there being a bug regarding the "colorize" property in the KONtx.element.Image object.

    If I initially set the colorize property of an image, then a grayscale image is properly colorized. However, if I change the colorize value of the same object, all coloring was removed, and only the grayscale image is displayed as is. Basically, I could only set the colorize value once.

    Has this issue been resolved in the latest YDK?

    Thanks

    There's a known bug when resetting the colorize property after it's initially been set. There is a ticket in for it. Sorry for the inconvenience.
    0
  • QUOTE (Benjamin Toll @ Mar 29 2011, 04:03 PM) <{POST_SNAPBACK}>
    There's a known bug when resetting the colorize property after it's initially been set. There is a ticket in for it. Sorry for the inconvenience.

    This has been an issue for well over a year. Is there any estimated timeframe for when this will be fixed?

    Are there any other workarounds besides removing the original image, and creating & appending a new one with the new colorize property?
    0
  • QUOTE (Steve @ Mar 30 2011, 03:16 AM) <{POST_SNAPBACK}>
    Are there any other workarounds besides removing the original image, and creating & appending a new one with the new colorize property?


    We have run a good amount of test on this and we could not find an acceptable workaround - other than the delete and append new.

    I am not at my main system, but below is a rough shot at the actual Image class extension we use to provide a reColorize control.

    CODE
    KONtx.element.Image = new KONtx.Class({
    ClassName: 'BaseImage',
    Extends: KONtx.element.Image,
    reColorize: function(color) {
    this.config.element = Image; //This gets cleared in the Core._initElement
    this.element = null;
    delete this.element;
    this.config = $merge(this.config,{colorize: color});
    this.initialize();
    }
    });
    0

Recent Posts

in General - Yahoo! TV Widgets