<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Конвертация ARGB в RGB]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=11098</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11098&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Конвертация ARGB в RGB».]]></description>
		<lastBuildDate>Sun, 22 Nov 2015 18:02:17 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Конвертация ARGB в RGB]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99223#p99223</link>
			<description><![CDATA[<p>Просто на битовые операции тратится предельно мало ресурсов.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 22 Nov 2015 18:02:17 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99223#p99223</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Конвертация ARGB в RGB]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99222#p99222</link>
			<description><![CDATA[<p>Да, так быстрее чем в первом посте аж в полтора раза, хотя казалось бы тоже самое.<br /></p><div class="codebox"><pre><code>Format(&quot;0x{:06X}&quot;, ARGB &amp; 0xFFFFFF)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sun, 22 Nov 2015 17:59:59 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99222#p99222</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Конвертация ARGB в RGB]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99220#p99220</link>
			<description><![CDATA[<p>Тогда без форматирования строки не обойтись:<br /></p><div class="codebox"><pre><code>ARGB := 0xee0000ab

MsgBox % Format(&quot;0x{:06X}&quot;, ARGB &amp; 0xFFFFFF)
; или
MsgBox % Format(&quot;{:#08x}&quot;, ARGB &amp; 0xFFFFFF)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 22 Nov 2015 17:48:36 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99220#p99220</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Конвертация ARGB в RGB]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99219#p99219</link>
			<description><![CDATA[<p>Хотелось бы возвращать именно ввиде &quot;RGB&quot;, то есть из:</p><div class="codebox"><pre><code>0xff000001</code></pre></div><p>вернуть не 0x1, а 0x000001.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sun, 22 Nov 2015 17:30:24 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99219#p99219</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Конвертация ARGB в RGB]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99218#p99218</link>
			<description><![CDATA[<p>Если задача освободиться от старшего байта, то так:<br /></p><div class="codebox"><pre><code>ARGB := 0xeeabcdef
SetFormat, IntegerFast, H
MsgBox, % &quot;RGB = &quot; 0xFFFFFF &amp; ARGB</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 22 Nov 2015 17:22:17 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99218#p99218</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Конвертация ARGB в RGB]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99217#p99217</link>
			<description><![CDATA[<p>Опишите, пожалуйста, по-русски название темы и её суть.</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Sun, 22 Nov 2015 17:20:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99217#p99217</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Конвертация ARGB в RGB]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=99216#p99216</link>
			<description><![CDATA[<p>Сделал такой вариант:<br /></p><div class="codebox"><pre><code>ARGB := 0xeeabcdef

MsgBox % RGBFromARGB(ARGB)
  
RGBFromARGB(ARGB)  {    
	Return &quot;0x&quot; SubStr(Format(&quot;{:08x}&quot;, ARGB), 3)
}</code></pre></div><p>Но думаю, что есть более производительные варианты.</p><p>Видел например такое:</p><div class="codebox"><pre><code>ARGBtoRGB( ARGB )
    {
        VarSetCapacity( RGB,6,0 )
        DllCall( &quot;msvcrt.dll\sprintf&quot;, Str,RGB, Str,&quot;%06X&quot;, UInt,ARGB&lt;&lt;8 )
        Return &quot;0x&quot; RGB
    }</code></pre></div><p>Но не работает.</p>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Sun, 22 Nov 2015 17:16:05 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=99216#p99216</guid>
		</item>
	</channel>
</rss>
