kopaka1822 / ImageViewer

HDR, PFM, DDS, KTX, EXR, PNG, JPG, BMP image viewer and manipulator
MIT License
331 stars 37 forks source link

Add shortcut to turn off/on alpha channel and shortcut to show Alpha channel only. #22

Closed powof2 closed 2 years ago

powof2 commented 2 years ago

Is your feature request related to a problem? Please describe. its not related to any problem. Add shortcut to see texture in RGB mode (turn off Alpha channel) Add shortcut to see texture in Alpha only mode (trun off RGB channel)

Describe the solution you'd like just like XnView press 'M', xnview will display alpha channel only ('M' means Mask, i guess) press 'M' again, xnview ill restored to its previous display mode. press Ctrl + 'H', turn off textures alpha channel.

kopaka1822 commented 2 years ago

Hello, for now you can use the image equations to achieve this behaviour:

see texture in RGB mode (turn off Alpha channel)

On the right side of the editor, click on the chains next to the alpha channel to enable editing. Then set A to 1 and click apply: Capture

see texture in Alpha only mode (trun off RGB channel)

Choose Alpha(I0) for RGB and 1 for A. Again, click apply: grafik

You can also click on the question mark next to the image equation, or navigate to Help->Equation to get a better explanation on how this works: https://github.com/kopaka1822/ImageViewer/blob/master/Docs/equation.md

I am not sure if I want to add shortcuts for this yet.

powof2 commented 2 years ago

It works great! I think it is enough for now, no need for short cut. Thank you.