Re: [flexcoders] repairing pixelation on resized photos
On Tue, Sep 9, 2008 at 1:44 AM, gabriel montagné <[EMAIL PROTECTED]> wrote: > were not allowed to do so, you'll get an ugly security violation runtime > error. [...] I cleaned up the component a bit, should now work as you'd expect, trying to smooth whatever is smoothable and falling back silently otherwise. http://rojored.googlecode.com/svn/trunk/docs/examples/image/i01/bin/Main.swf http://code.google.com/p/rojored/source/browse/trunk/src/com/rojored/view/controls/Image.as laters, g. -- gabriel montagné láscaris comneno http://rojored.com t/506.8392.2040
Re: [flexcoders] repairing pixelation on resized photos
Hey David, Guy, On Mon, Sep 8, 2008 at 7:59 PM, David Pariente <[EMAIL PROTECTED]> wrote: >> - Mensaje original >> De: Guy Morton <[EMAIL PROTECTED]> >> >> You need to turn on bitmap smoothing. Look at the BitMap class in the help >> docs. eg Keep in mind that to be able to smoothen your images you need to access the bitmap data of your loaded image, this has some security implications as you can only read that for images inside your security sandbox. This also implies that your player will have to try to download the crossdomain.xml file for the image you want to make smooth before you actually smooth it. Afterwards, it'll be too late. Also, if you are not careful and you try to access the bitmap data but you were not allowed to do so, you'll get an ugly security violation runtime error. Check out this example: http://rojored.googlecode.com/svn/trunk/docs/examples/image/i01/bin/Main.swf The first image is allowed to be loaded as data by the crossdomain.xml in my site. But if you change the URL to the other image for which bitmap data access is forbidden without turning off smoothing, you'll see the error I'm talking about. Here's the smoothing part of the component: http://code.google.com/p/rojored/source/browse/trunk/src/com/rojored/view/controls/Image.as#410 Feel free to grab it if it works for you! Cheers, G. -- gabriel montagné láscaris comneno http://rojored.com t/506.8392.2040
Re: [flexcoders] repairing pixelation on resized photos
thnx, i will take a look and try :) - Mensaje original De: Guy Morton <[EMAIL PROTECTED]> Para: flexcoders@yahoogroups.com Enviado: martes, 9 de septiembre, 2008 0:18:26 Asunto: Re: [flexcoders] repairing pixelation on resized photos You need to turn on bitmap smoothing. Look at the BitMap class in the help docs. eg var bitmap:Bitmap = imageObject. content as Bitmap; bitmap.smoothing = true; On 09/09/2008, at 12:16 AM, David Pariente wrote: Hello, On my website i have lots of pics that i load and then resize to fit different SMALLER sizes. The smaller pictures quality is really crapnot acceptable by my customer...not even by me...i never saw a program resize picture into smaller with so less quality like this in my whole life. So my question is...is there a way to add a little more blur or a little more antialiasing to those pics so they look acceptable.. .even not perfect? is there a .quality property for those pics?? I can resize the pics on server...but server would explode... I'm looking for a MXML or a easy AS3 solution instead. thnx a lot!! :)
Re: [flexcoders] repairing pixelation on resized photos
You need to turn on bitmap smoothing. Look at the BitMap class in the help docs. eg var bitmap:Bitmap = imageObject.content as Bitmap; bitmap.smoothing = true; On 09/09/2008, at 12:16 AM, David Pariente wrote: Hello, On my website i have lots of pics that i load and then resize to fit different SMALLER sizes. The smaller pictures quality is really crapnot acceptable by my customer...not even by me...i never saw a program resize picture into smaller with so less quality like this in my whole life. So my question is...is there a way to add a little more blur or a little more antialiasing to those pics so they look acceptable...even not perfect? is there a .quality property for those pics?? I can resize the pics on server...but server would explode... I'm looking for a MXML or a easy AS3 solution instead. thnx a lot!! :)
[flexcoders] repairing pixelation on resized photos
Hello, On my website i have lots of pics that i load and then resize to fit different SMALLER sizes. The smaller pictures quality is really crapnot acceptable by my customer...not even by me...i never saw a program resize picture into smaller with so less quality like this in my whole life. So my question is...is there a way to add a little more blur or a little more antialiasing to those pics so they look acceptable...even not perfect? is there a .quality property for those pics?? I can resize the pics on server...but server would explode... I'm looking for a MXML or a easy AS3 solution instead. thnx a lot!! :)