How to add a button to show-hide alphas?

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
jeeg
Posts: 62
Joined: Wed Mar 18, 2009 8:11 pm

How to add a button to show-hide alphas?

Post by jeeg »

Hi!
In the menus there is a command to show or hide alpha channel in the picture. The keyboard shortcut is Ctrl+H.

I want to add a button to show or hide alpahs directly in the interface.
But I cannot find the command in the list in the toolbar customization panel.

Is there a way to do it? I will draw a custon icon for the toolbar by myself. The problem is that I cannot find the command in the list provided.
User avatar
XnTriq
Moderator & Librarian
Posts: 6512
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: How to add a button to show-hide alphas?

Post by XnTriq »

Tools » Options... » Interface » Toolbar » Buttons » Buttons displayed » View » Append » Command » cmd_ShowMask [ Show Mask ]
jeeg
Posts: 62
Joined: Wed Mar 18, 2009 8:11 pm

Re: How to add a button to show-hide alphas?

Post by jeeg »

No no..."Show Mask" it's different.
"Show Mask " show only the mask. So you see only the alpha channel in black and white.

Instead The command "Use alpha channel" it will show the pictures "and" the trasparency caused by the alpha mask.
Try by yourself. Show a picture in xnview that has alpha mask. Toggle the alpha using ctrl+h and you we'll see what happen.

I want a button instead of the shortcut but I cannot find the command in the list. Maybe I have to ask to the author to add it to the command list.
User avatar
XnTriq
Moderator & Librarian
Posts: 6512
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: How to add a button to show-hide alphas?

Post by XnTriq »

Sorry, jeeg. Of course you are correct.

cmd_useAlpha and cmd_useTransIndex are only available in XnView MP v0.38.
These are the commands you can choose from for the View toolbar of XnView v1.98.5:

Code: Select all

cmd_Open [ Open... ]
cmd_ShellOpen [ Associated Program ]
cmd_ShellEdit [ Associated Editor ]
cmd_ViewHex
cmd_Browse
cmd_Reopen [ Reopen ]
cmd_Save [ Save ]
cmd_SaveAs [ Save As... ]
cmd_Export [ Export... ]
cmd_Print [ Print... ]
cmd_QuickPrint
cmd_ScanSetup [ Select TWAIN source... ]
cmd_Scan [ Acquire... ]
cmd_BatchScan [ Acquire into... ]
cmd_WIA [ Acquire from Scanner or Camera (WIA)... ]
cmd_Quit [ Exit ]
cmd_Undo [ Undo ]
cmd_Redo [ Redo ]
cmd_Cut [ Cut ]
cmd_Copy [ Copy ]
cmd_Paste [ Paste ]
cmd_Clear [ Clear ]
cmd_Crop [ Crop ]
cmd_ImportClipboard [ Import Clipboard ]
cmd_SelectAll [ Select All ]
cmd_SelectNone [ Select None ]
cmd_FileOperation
cmd_CopyTo [ Copy to folder... ]
cmd_MoveTo [ Move to folder... ]
cmd_Delete [ Delete... ]
cmd_Rename [ Rename... ]
cmd_Describe [ Describe... ]
cmd_EditComment [ Edit comment... ]
cmd_CopyCommentIntoCaption [ Copy Comment to IPTC Caption ]
cmd_CopyCaptionToComment [ Copy IPTC Caption to Comment ]
cmd_CopyEXIFCommentIntoComment [ Copy EXIF User Comment to Comment ]
cmd_EditIPTC [ Edit IPTC data... ]
cmd_IPTCExport [ Export IPTC data... ]
cmd_EXIFExport [ Export EXIF data... ]
cmd_OpenProperties [ Properties ]
cmd_ShowGPS [ Open GPS location in GeoHack ]
cmd_Fullscreen [ Fullscreen ]
cmd_ZoomIn [ Zoom + ]
cmd_ZoomOut [ Zoom - ]
cmd_LockZoom [ Lock Zoom ]
cmd_Zoom100 [ 100% ]
cmd_RealSize [ Real size ]
cmd_NextFile [ Next ]
cmd_PreviousFile [ Previous ]
cmd_FirstFile [ First ]
cmd_LastFile [ Last ]
cmd_NextPage [ Next ]
cmd_PreviousPage [ Previous ]
cmd_FirstPage [ First ]
cmd_LastPage [ Last ]
cmd_Page [ Open Page Number... ]
cmd_QuickSlideShow
cmd_FitToImage [ Fit window to image ]
cmd_FitToWindow [ Fit image to window ]
cmd_FitToWindowLarge [ Fit image to window, large only ]
cmd_FitToDesktop [ Fit image to desktop ]
cmd_FitTopDesktopLarge [ Fit image to desktop, large only ]
cmd_FitToWindowWidth [ Fit image to window width ]
cmd_FitToWindowHeightVar [ Fit image to window width, var. height ]
cmd_FitToWindowHeight [ Fit image to window height ]
cmd_FitToWindowHeightVar [ Fit image to window height, var. width ]
cmd_FitToWindowSmall [ Fit image to window, small only ]
cmd_ShowMask [ Show Mask  ]
cmd_ShowGrid [ Show Grid ]
cmd_ShowInfo [ Show information ]
cmd_StopMovie [ Stop Animation ]
cmd_ShowHexa [ View in Hex mode ]
cmd_CountColors [ Count colours used ]
cmd_AutoLevels [ Automatic levels ]
cmd_AutoContrast [ Automatic contrast ]
cmd_Negative [ Negative ]
cmd_LogLut [ Logarithmic Lut ]
cmd_Normalize [ Normalize ]
cmd_Equalize [ Equalize ]
cmd_Solarize [ Solarize... ]
cmd_Posterize [ Posterize... ]
cmd_Sepia [ Sepia... ]
cmd_Balance [ Brightness/Contrast/Gamma/Balance... ]
cmd_Levels [ Levels... ]
cmd_HLS [ Hue/Lightness/Saturation... ]
cmd_Conbright [ Conbright... ]
cmd_Gammasat [ Gammasat... ]
cmd_Rotate270 [ 90° left ]
cmd_Rotate90 [ 90° right ]
cmd_Rotate180 [ 180° ]
cmd_Rotate [ Custom... ]
cmd_Deskew [ De-skew... ]
cmd_VerticalFlip [ Vertical ]
cmd_HorizontalFlip [ Horizontal ]
cmd_Resize [ Resize... ]
cmd_CanvasResize [ Canvas size... ]
cmd_AutoCrop [ Automatic crop... ]
cmd_SetDPI [ Set DPI... ]
cmd_AddText [ Add Text... ]
cmd_RedEyes [ Red Eyes correction ]
cmd_EditCmap [ Edit Palette... ]
cmd_Watermark [ Add Watermark... ]
cmd_Effect [ Effects... ]
cmd_Deinterlace
cmd_UserFilter [ User filter... ]
cmd_8BFPlugin [ Adobe Photoshop Plug-In... ]
cmd_Search [ Search... ]
cmd_Capture [ Capture screen... ]
cmd_SlideShow
cmd_BatchConvert [ Batch Processing... ]
cmd_SequenceConvert [ Sequence Convert... ]
cmd_Email [ Send by Email... ]
cmd_JPEGLossless [ Dialog... ]
cmd_JPEGRotation270 [ Rotate 90° left ]
cmd_JPEGRotation90 [ Rotate 90° right ]
cmd_JPEGRotation180 [ Rotate 180° ]
cmd_JPEGVerticalFlip [ Flip Vertical ]
cmd_JPEGHorizontalFlip [ Flip Horizontal ]
cmd_JPEGCrop [ Crop ]
cmd_MovieExtract [ Extract Movie Frames... ]
cmd_SetWallpaperCentered [ Centered ]
cmd_SetWallpaperTile [ Tiled ]
cmd_SetWallpaperFit [ Fit to Desktop ]
cmd_SetWallpaperBestFit [ Best Fit to Desktop ]
cmd_CreateMultipage [ Create ]
cmd_EditMultipageTIFF [ Edit Multipage TIFF... ]
cmd_ExtractMultipage [ Extract All ]
cmd_ExtractMultipageInto [ Extract All Into... ]
cmd_Panorama [ Create strip of images... ]
cmd_Options [ Options... ]
cmd_Help [ Help ]
cmd_Tips [ Tip of the day... ]
cmd_Formats [ Supported formats... ]
cmd_Plugins [ Plug-Ins Information... ]
cmd_WEB [ Visit XnView's Web Site... ]
cmd_Forum [ Visit XnView's Forum... ]
cmd_About [ About... ]
cmd_Addon01 [ AltaLux (1.00) ]
cmd_Addon02 [ Flash (1.01) ]
cmd_Addon03 [ FTP (1.05) ]
cmd_Addon04 [ ImageShack (1.04) ]
cmd_Addon05 [ CD (Nero) (1.0) ]
cmd_Addon06 [ PackJPG (1.00) ]
cmd_Addon07 [ Paint (1.06) ]
cmd_Addon08 [ PhotoMasque (1.0) ]
cmd_Addon09 [ PNGOut (1.00) ]
cmd_Addon10 [ ZIP Pack (1.0) ]
jeeg
Posts: 62
Joined: Wed Mar 18, 2009 8:11 pm

Re: How to add a button to show-hide alphas?

Post by jeeg »

Thank you for the answer.
I never tried Xnview MP....I'm going to read more about it and see what it does and if can be useful for me. Thanks!
Post Reply