Jump to content
Search Community

Recommended Posts

im getting weird black 1px border around my images when i do colorTransform, here's the ss

 

h2QWFMZ.jpg

 

// and the code

 

var image:Bitmap = Bitmap(e.target.content);//loader.content);

image.smoothing=true;

image.x = image.y = -21;

if(image.width > 42) {

image.width = image.height = 42;

}

addChild(image);

image.alpha = 0;

 

TweenMax.to(image, 0, {colorTransform:{exposure:1.8}});

TweenMax.to(image, 1, {alpha: 1});

TweenMax.to(image, 1, {colorTransform:{exposure:1}, delay: 1});

Link to comment
Share on other sites

Are those maybe semi-transparent pixels or something? TweenMax (and ColorTransformPlugin) doesn't do anything special to the actual DisplayObject/Image other than apply the ColorTransform values you specify, so I'm not sure there's much we can do if Flash is rendering things that way (other than checking the semi-transparent guess). Maybe you could try using a ColorMatrixFilterPlugin effect to get something similar, altering the contrast and/or brightness?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...