How to pic a color for pasting it in HTML code

Ideas for improvements and requests for new features in XnView Classic

Moderators: XnTriq, xnview

User avatar
Talker
Posts: 3
Joined: Fri Aug 21, 2015 5:05 pm

How to pic a color for pasting it in HTML code

Postby Talker » Wed Apr 06, 2016 9:38 am

Hi!

Is there an easy way to pic a color and copy it to the Clipboard for pasting it in HTML code? Just like the "Copy Color Hex Code" in Photoshop.

In XnView I've found "View / Display Color Information" but I don't know how to copy an HTML color code to the Clipboard.

User avatar
XnTriq
Moderator & Librarian
Posts: 5006
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: How to pic a color for pasting it in HTML code

Postby XnTriq » Wed Apr 06, 2016 2:45 pm


User avatar
xnview
Author of XnView
Posts: 27697
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: How to pic a color for pasting it in HTML code

Postby xnview » Thu Apr 07, 2016 11:43 am

so copy the current shown color from 'Display Color Information' in clipboard?
Pierre.

User avatar
XnTriq
Moderator & Librarian
Posts: 5006
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: How to pic a color for pasting it in HTML code

Postby XnTriq » Fri Apr 08, 2016 4:00 am

xnview wrote:so copy the current shown color from 'Display Color Information' in clipboard?

Yes :-)

  1. Option for Hex (#ffffff) vs. RGB (rgb(255,255,255)) format
  2. Preview in tooltip

p131303_1.png
Corel Photo-Paint
p131303_1.png (377 Bytes) Viewed 663 times
Attachments
p131303_2.png
Jasc Paint Shop Pro

User avatar
xnview
Author of XnView
Posts: 27697
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: How to pic a color for pasting it in HTML code

Postby xnview » Wed Apr 12, 2017 2:16 pm

XnTriq wrote:
xnview wrote:so copy the current shown color from 'Display Color Information' in clipboard?

Yes :-)

So how to copy it? A left click?
Pierre.

User avatar
XnTriq
Moderator & Librarian
Posts: 5006
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: How to pic a color for pasting it in HTML code

Postby XnTriq » Thu Apr 13, 2017 3:45 pm

xnview wrote:So how to copy it? A left click?

Left and right mouse buttons (without modifier key) are already used for Make selection or Move picture in XnView (ToolsOptions...Keyboard/MouseMouse).
Disabling Make selection and Move picture when Display Colour Information is active would cause problems with the following INI tweak, I guess:

XnView Wiki (UI-less Settings → View → ColorInfo) wrote:Changes the behavior of the color information tool.

    0 Show only for the currently viewed image.
    1 Show also for the previous¦next file to view.
    2 Show between sessions.
Value: Integer, default value is 0

Many image editors allow the user to constrain the selection ratio to 1:1 (square/circle vs. rectangle/ellipse) with Shift+LMB. In Phototshop, Shift+Alt+LMB centers the selection around the point where you first clicked (in addition to constraining the selection to a square or circle). Ctrl+LMB and Alt+LMB are often used for adding or subtracting to a selection.
I'm fully aware that XnView isn't meant to be an editor, but in case Pierre decides to expand the cropping functionality, these modifier keys should still be available, IMO.

So, how about Ctrl+RMB?


Return to “Classic - Suggestions”

Who is online

Users browsing this forum: No registered users and 2 guests