Hi Karl,
Kind of tired, so the easiest way I can think of to do this is to
evaluate and convert each pixel's RGB values to HSB and then average
your found values for all the pixels in the region the loader is to be
displayed within.
Hue, Saturation, Brightness. if the brightness is less
Your not alone burning the late night pixels.
Thanks for your response, this is a good idea.
Then you can get some kind of value that will translate to a function.
H..
very interesting.
Thanks for the links too.
gnight
Karl DeSaulniers
Design Drumm
http://designdrumm.com
On Mar 29,
I just realized the link I have you with the java doesn't really show
you anything other than how to use java's Color.RGBtoHSB function...
yikes, I told you I was tired
This might be a little more helpful.
http://www.easyrgb.com/index.php?X=MATHH=20#text20
Karl DeSaulniers wrote:
Your not
Yeh I was going to see if I could adopt the theory into as
Sent from losPhone
On Mar 29, 2009, at 2:23 AM, Anthony Pace anthony.p...@utoronto.ca
wrote:
I just realized the link I have you with the java doesn't really
show you anything other than how to use java's Color.RGBtoHSB
just noticed that wikipedia has some decent info
http://en.wikipedia.org/wiki/HSV_color_space
Karl DeSaulniers wrote:
Yeh I was going to see if I could adopt the theory into as
Sent from losPhone
On Mar 29, 2009, at 2:23 AM, Anthony Pace anthony.p...@utoronto.ca
wrote:
I just realized the
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1955.html
Karl DeSaulniers wrote:
Here is my other question.
How to identify a pixel in as2.
I haven't google'd it yet so that answer my be already out there, but
I thought I'd ask.
Wow,
Thank you oo so much.
I hope it hasn't been too much trouble, but I really appreciate the
help.
Best
Karl DeSaulniers
Design Drumm
http://designdrumm.com
On Mar 29, 2009, at 6:21 AM, Anthony Pace wrote:
http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/
As it's been said already, you could try converting to HLS and the get the
average luminance (brigthness). Here's a handy class to convert from RGB to
HSL and viceversa.
http://www.dreaminginflash.com/2007/11/19/hls-to-rgb-rgb-to-hls/
Another approach, which might be faster (but you'd have to
On Sun, Mar 29, 2009 at 8:14 PM, Juan Pablo Califano
califa010.flashcod...@gmail.com wrote:
As it's been said already, you could try converting to HLS and the get the
average luminance (brigthness). Here's a handy class to convert from RGB to
HSL and viceversa.
It's indeed much faster (five times faster than transforming to grey scale),
though the results I'm getting are incorrect (the other 2 methods seems to
return consistently similar results, though trasnforming to HLS takes about
3200 ms for a 1152 x 864 image, and transform to grey scale takes
I'm not sure, but maybe it is.
Your approach seemed the easiest and fastest, so I gave it a try. I'm
getting very different results compared to the other 2 methods, but I'm not
really sure if I'm scaled the image properly, that's why I posted the code.
Anyway, since I already have the code for
I actially wanted to get the density. How dark and how light. Not
necessarily black and white. Dark color or light color. I also don't
want to convert any images. Now if it takes converting the image to
calculate, then the user can never see this conversion of the photo.
Just the
Honestly, I'm not sure if I'm following you at this point...
However, I was not talking about *displaying* a grey-scaled image. Just
using it as way to calculate each pixel's luminance / brightness. Which in
this case will give you the same results as transforming to HLS and reading
the L value.
Hi,
Wordpress has the monotone theme which sets your CSS colours based
on the image colouring. I am not sure if this is done in Flash or not,
but I am guessing there will be some code in there somewhere to work out
the colour or the image which you might be able to adapt...
Check this out for a nice way to extract color from an image.
http://blog.soulwire.co.uk/flash/actionscript-3/colourutils-bitmapdata-extract-colour-palette/
Cheers
Juan Pablo Califano
2009/3/29 Glen Pike postmas...@glenpike.co.uk
Hi,
Wordpress has the monotone theme which sets your CSS
If all you want is a visible loader, you might even try a blend mode,
like difference. Which you would then have to deal with stylistically,
but that would make the code required null.
If not, I have done this before to place text on an image and I used
the scaledBitmap system. The inaccuracies
Well being a photo gallery loader, I don't want to convert the image
to grayscale. I do however
Like an idea that Anthony had mentioned with getting the pixels
opposite. Imagine being able to (just for the sake of conversation)
drag that loader around the photo and the loader changes color
Simplicity is so beautiful sometimes.
I think your right, that will get the effect I am looking for.
I still like what was given for the reading of pixels and the HSB
conversion though. I am going to try and implement that on another
idea I got while trying to figure this out. Thank you all
18 matches
Mail list logo