<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
24.11.2016, 18:01, Even Rouault kirjoitti:<br>
<blockquote cite="mid:2185217.tZo4xrGmKO@even-i700" type="cite">
<meta name="qrichtext" content="1">
<style type="text/css">
p, li { white-space: pre-wrap; }</style>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; "> </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Could be worth fixing that if that cause issues (apparently in your use case at least), but I'd be interested by information of what is the standard/recommanded/best-practice-in-the-industry/etc... formulas to use for the mapping between the [0,255] and [0,65535] ranges.</p>
</blockquote>
<br>
At least in the GTK circles it seems to be a standard practice to
use the 257 as the scaling factor. See for example<br>
<br>
<a class="moz-txt-link-freetext" href="http://gtk2-perl.sourceforge.net/doc/pod/Gtk2/Gdk/Color.html">http://gtk2-perl.sourceforge.net/doc/pod/Gtk2/Gdk/Color.html</a><br>
<br>
Ari<br>
<br>
<br>
<br>
</body>
</html>