View Single Post
  #10  
Old March 21st 16, 09:23 PM posted to alt.comp.os.windows-8,alt.comp.os.windows-10
John Doe[_8_]
external usenet poster
 
Posts: 2,378
Default OT Inverted/negative picture viewer?

Big Bad Bob wrote in
:

On 03/21/16 12:13, John Doe so wittily quipped:
Stormin' Norman wrote in
:

On Mon, 21 Mar 2016 06:42:56 -0000 (UTC), John Doe
wrote:

Furthering my quest to make dark Windows look fantastic.

VLC media player includes an option to invert video colors.

Apparently
that will negate having to toggle color inversion whenever playing a
video. But looks like VLC fails as an image viewer.

So I need a picture/image viewer that will show pictures inverted. I
have found some that allow inverting colors in the editing process,
but I'm talking about viewing successive images inverted without
having to repeatedly change settings. Like VLC media player, but for
pictures instead of videos.

Thanks.

Irfanview key combination:

ctrl+shift+N


I'm talking about viewing successive images inverted without having to
repeatedly change settings. Like VLC media player, but for pictures
instead of videos.


maybe you could grab sample code from an open source appLICATION and
then write one? just a thought...

I'm not sure which GDI operation will do what you want. the color
transform for 'negative' would be to invert the angle on the color wheel
to be 180 degrees of what it was. it's only a 2D transform so maybe not
that hard, read RGB for each pixel, use the calculation for 'chroma' and
invert it to 180 degrees of what it was, then re-calculate RGB from
that, write the pixel, then when you're done, display it. Have it read
every file in a directory, one at a time, and let you scroll through
them with arrows. that'd work, probably.


VLC media player is open source, why not just look there. It loads images
and plays videos, all inverted.
Ads