1. Negative Images

Hi, 

I was wondering if anyone had a routine for finding the negative of an image?
The source will be a Jpeg.

Chers,

Alex

new topic     » topic index » view message » categorize

2. Re: Negative Images

> I was wondering if anyone had a routine for finding the negative of an im=
age? The source will be a Jpeg.

Isn't a negative just an complete inverse of a color image? If so,
then load it into Paint and click Image > Invert Colors...

If you want to do it code-wise, just or_bits() the color with whatever
White is (255, #FFFFFF, etc.)

new topic     » goto parent     » topic index » view message » categorize

3. Re: Negative Images

Greg Haberek wrote:
> 
> > I was wondering if anyone had a routine for finding the negative of an im=
> age? The source will be a Jpeg.
> 
> Isn't a negative just an complete inverse of a color image? If so,
> then load it into Paint and click Image > Invert Colors...
> 
> If you want to do it code-wise, just or_bits() the color with whatever
> White is (255, #FFFFFF, etc.)
> 
> 

Hi Greg,

Not to be nit-picking or anything, but didnt you mean xor_bits()
instead of or_bits() ?


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

 From "Black Knight":
"I can live with losing the good fight,
 but i can not live without fighting it".

new topic     » goto parent     » topic index » view message » categorize

4. Re: Negative Images

> Not to be nit-picking or anything, but didnt you mean xor_bits()
> instead of or_bits() ?

Probably. I usually play around with and_bits(), or_bits() and
xor_bits() until I get the desired result. :)

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu