<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2927898</guid>
        <pubDate>Tue, 05 Jul 2011 13:30:20 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2927898</link>
        <description><![CDATA[sanchos91: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=84786&view=findpost&p=2856762'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Klaribel &#064; <time class="tag-quote__quoted-time" datetime="2011-03-18T17:02:45+03:00">18.03.11, 14:02</time></span><div class='quote '>А если мне именно надо jpg и именно такого размера (160х128)?=)</div></div><br>
Для *.jpg можна использовать TJPEGImage.<br>
<br>
#include &lt;Jpeg.hpp&gt;<br>
//-----------------<br>
TJPEGImage    *tJpg=new TJPEGImage;<br>
//-----------------]]></description>
        <author>sanchos91</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2910455</guid>
        <pubDate>Wed, 08 Jun 2011 10:31:11 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2910455</link>
        <description><![CDATA[donotlies: я её взял с первой страницы этой темы...]]></description>
        <author>donotlies</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2908374</guid>
        <pubDate>Sun, 05 Jun 2011 20:22:04 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2908374</link>
        <description><![CDATA[Pavia: <strong class='tag-b'>donotlies</strong><br>
Это история старая. Во времена когда создавалось телевидение...<br>
<br>
Во общем формула отсюда.<br>
http://www.itu.int/dms_pubrec/itu-r/rec/bt/R-REC-BT.601-7-201103-I&#33;&#33;PDF-E.pdf<br>
<br>
<strong class='tag-b'>Chow</strong><br>
Википедия не достоверный источник. Но такая формула тоже существует.<br>
<br>
А по поводу того какая из них правильная отвечу просто. Во первых не понятно откуда взялась картинка и формат её хранения и способ вывода. Так что с успехом можно применять любую. Но вроде как стандарт CIE преобладает. Так что надо следовать ихним рекомендациям.]]></description>
        <author>Pavia</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2908286</guid>
        <pubDate>Sun, 05 Jun 2011 16:54:53 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2908286</link>
        <description><![CDATA[Chow: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=84786&view=findpost&p=2907844'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>donotlies &#064; <time class="tag-quote__quoted-time" datetime="2011-06-04T14:20:21+00:00">04.06.11, 14:20</time></span><div class='quote '>откуда формула серого такая? #define Gray(R, G, B) (R*.257 + G*.504+B*.098+16.)</div></div><br>
А от куда ты ее взял?<br>
На Википедии приведены такие весовые коэффициенты: 0,222 0,707 и 0,071]]></description>
        <author>Chow</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2908230</guid>
        <pubDate>Sun, 05 Jun 2011 15:03:05 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2908230</link>
        <description><![CDATA[trainer: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=84786&view=findpost&p=2907844'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>donotlies &#064; <time class="tag-quote__quoted-time" datetime="2011-06-04T14:20:21+00:00">04.06.11, 14:20</time></span><div class='quote '>откуда формула серого такая? #define Gray(R, G, B) (R*.257 + G*.504+B*.098+16.) есть формулы других цветов?</div></div>Откуда там у тебя +16. - это нам не известно. Это очевидно вычисление яркости точки, отображать ее можно в оттенках хоть серого, хоть красного или зеленого. Каких таких других цветов?]]></description>
        <author>trainer</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2907844</guid>
        <pubDate>Sat, 04 Jun 2011 14:20:21 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2907844</link>
        <description><![CDATA[donotlies: подскажите ещё одному начинающему программисту, возможно ли провернуть фильтр сепии?<br>
пробовал менять формулу серого на формулу коричневого и сепии, но как-то не очень получалось... подскажите плиз) <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2011-06-04T14:27:19+00:00">04.06.11, 14:27</time></span></span><br>
откуда формула серого такая? #define Gray(R, G, B) (R*.257 + G*.504+B*.098+16.) есть формулы других цветов?]]></description>
        <author>donotlies</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2860190</guid>
        <pubDate>Wed, 23 Mar 2011 13:25:39 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2860190</link>
        <description><![CDATA[Klaribel: Спасибо огромное&#33; РАБОТАЕТ&#33; :D]]></description>
        <author>Klaribel</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856871</guid>
        <pubDate>Fri, 18 Mar 2011 15:34:49 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856871</link>
        <description><![CDATA[Klaribel: Всем спасибо, завтра попробую, сегодня уже сил нет=)]]></description>
        <author>Klaribel</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856819</guid>
        <pubDate>Fri, 18 Mar 2011 14:54:42 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856819</link>
        <description><![CDATA[Chow: Если в Image1 загружен не bmp-формат (jpg, png и т.д.) то можно просто скопировать эту картинку в промежуточный bmp, его &quot;засерить&quot; и заасайнить его уже в Image2.<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;&nbsp;// копирование в промежуточный bitmap</div><div class="code_line">&nbsp;&nbsp;Graphics::TBitmap* bitmap = new Graphics::TBitmap();</div><div class="code_line">&nbsp;&nbsp;bitmap-&#62;Width = Image1-&#62;Width;</div><div class="code_line">&nbsp;&nbsp;bitmap-&#62;Height = Image1-&#62;Height;</div><div class="code_line">&nbsp;&nbsp;BitBlt(bitmap-&#62;Canvas-&#62;Handle, 0, 0, bitmap-&#62;Width, bitmap-&#62;Height, Form1-&#62;Canvas-&#62;Handle, Image1-&#62;Left, Image1-&#62;Top, SRCCOPY);</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp;// &quot;засеривание&quot; промежуточного bitmap&#39;а</div><div class="code_line">&nbsp;&nbsp;bitmap-&#62;PixelFormat = pf24bit;</div><div class="code_line">&nbsp;&nbsp;for (int y = bitmap-&#62;Height - 1; y &#62;= 0; --y)</div><div class="code_line">&nbsp;&nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp;TRGBTriple* scanLine = (TRGBTriple*)bitmap-&#62;ScanLine[y];</div><div class="code_line">&nbsp;&nbsp; &nbsp;for (int x = bitmap-&#62;Width - 1; &nbsp;x &#62;= 0; --x)</div><div class="code_line">&nbsp;&nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;const BYTE gray = 0.222 * scanLine[x].rgbtRed +</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.707 * scanLine[x].rgbtGreen +</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.071 * scanLine[x].rgbtBlue;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;scanLine[x].rgbtGreen = gray;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;scanLine[x].rgbtRed = gray;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;scanLine[x].rgbtBlue = gray;</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp;}</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp;// копирование промежуточного bitmap&#39;а в Image2</div><div class="code_line">&nbsp;&nbsp;Image2-&#62;Picture-&#62;Assign(bitmap);</div><div class="code_line">&nbsp;&nbsp;delete bitmap;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
<br>
Но если картинка не на форме (а на панели например, к канве которой доступа напрямую нет) или поверх картинки какие-то контролы - то тогда сложнее будет. <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2011-03-18T14:57:27+00:00">18.03.11, 14:57</time></span></span><br>
<div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=84786&view=findpost&p=2856813'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Kamenev_D &#064; <time class="tag-quote__quoted-time" datetime="2011-03-18T14:53:02+00:00">18.03.11, 14:53</time></span><div class='quote '>Кстати, я так и не понял почему не обрабатывается вся фото</div></div><br>
У тебя вообще какой-то код кучерявый.. Какие-то три цикла и почему только до 255(254)?&#33; <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2011-03-18T15:16:15+00:00">18.03.11, 15:16</time></span></span><br>
о.. прикольно. Знаю как прорисовать Image в любой девайсконтекст (именно прорисовать а не скопировать уже прорисованный).<br>
вместо<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">BitBlt(bitmap-&#62;Canvas-&#62;Handle, 0, 0, bitmap-&#62;Width, bitmap-&#62;Height, Form1-&#62;Canvas-&#62;Handle, Image1-&#62;Left, Image1-&#62;Top, SRCCOPY);</div></ol></div></div></div></div><br>
надо просто<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">Image1-&#62;Perform(WM_PAINT, (WPARAM)bitmap-&#62;Canvas-&#62;Handle, 0);</div></ol></div></div></div></div><br>
и отпадает проблема парента, и возможных контролов поверх картинки... Image1 вообще невидимым может быть&#33; <br>
<br>
<span class="tag-color tag-color-named" data-value="gray" style="color: gray"><span class='tag-size' data-value='7' style='font-size:7pt;'>Добавлено <time class="tag-mergetime" datetime="2011-03-18T15:26:14+00:00">18.03.11, 15:26</time></span></span><br>
Так-с...<br>
После всего вышло что можно и вообще без промежуточного битмапа :D <br>
Сразу прорисовать Image1 в Image2 и потом последний &quot;засерить&quot;:<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;&nbsp;Image2-&#62;Picture-&#62;Bitmap-&#62;PixelFormat = pf24bit;</div><div class="code_line">&nbsp;&nbsp;Image2-&#62;Picture-&#62;Bitmap-&#62;Width = Image1-&#62;Width;</div><div class="code_line">&nbsp;&nbsp;Image2-&#62;Picture-&#62;Bitmap-&#62;Height = Image1-&#62;Height;</div><div class="code_line">&nbsp;&nbsp;Image1-&#62;Perform(WM_PAINT, (WPARAM)Image2-&#62;Picture-&#62;Bitmap-&#62;Canvas-&#62;Handle, 0);</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp;for (int y = Image2-&#62;Picture-&#62;Bitmap-&#62;Height - 1; y &#62;= 0; --y)</div><div class="code_line">&nbsp;&nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp;TRGBTriple* scanLine = (TRGBTriple*)Image2-&#62;Picture-&#62;Bitmap-&#62;ScanLine[y];</div><div class="code_line">&nbsp;&nbsp; &nbsp;for (int x = Image2-&#62;Picture-&#62;Bitmap-&#62;Width - 1; &nbsp;x &#62;= 0; --x)</div><div class="code_line">&nbsp;&nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;const BYTE gray = 0.222 * scanLine[x].rgbtRed +</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.707 * scanLine[x].rgbtGreen +</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.071 * scanLine[x].rgbtBlue;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;scanLine[x].rgbtGreen = gray;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;scanLine[x].rgbtRed = gray;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp;scanLine[x].rgbtBlue = gray;</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp;}</div></ol></div></div></div></div><br>
<br>
Работает :)]]></description>
        <author>Chow</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856813</guid>
        <pubDate>Fri, 18 Mar 2011 14:53:02 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856813</link>
        <description><![CDATA[Kamenev_D: Кстати, я так и не понял почему не обрабатывается вся фото. Выдернул кусок кода из проекта просто. Но раньше то работал же.<br>Может кто-то подскажет почему так происходит.]]></description>
        <author>Kamenev_D</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856799</guid>
        <pubDate>Fri, 18 Mar 2011 14:42:46 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856799</link>
        <description><![CDATA[Klaribel: Ну да, bmp и большего размера прога обрабатывает, но действительно только маленькую часть. С jpg, пределанный в bmp и большего, и такого же размера работать отказывается:(]]></description>
        <author>Klaribel</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856775</guid>
        <pubDate>Fri, 18 Mar 2011 14:20:54 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856775</link>
        <description><![CDATA[Kamenev_D: ну попробуй сначала загрузить bmp такого размера]]></description>
        <author>Kamenev_D</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856762</guid>
        <pubDate>Fri, 18 Mar 2011 14:02:45 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856762</link>
        <description><![CDATA[Klaribel: А если мне именно надо jpg и именно такого размера (160х128)?=)]]></description>
        <author>Klaribel</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856751</guid>
        <pubDate>Fri, 18 Mar 2011 13:54:25 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856751</link>
        <description><![CDATA[Kamenev_D: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=84786&view=findpost&p=2856746'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Klaribel &#064; <time class="tag-quote__quoted-time" datetime="2011-03-18T13:51:13+00:00">18.03.11, 13:51</time></span><div class='quote '>Выскакивает окно </div></div><br>
Загрузи фото другого размера. И обязательно bmp]]></description>
        <author>Kamenev_D</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856746</guid>
        <pubDate>Fri, 18 Mar 2011 13:51:13 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856746</link>
        <description><![CDATA[Klaribel: Спасибо за идею, однако не получается.<br>Выскакивает окно <br><br>project project1.exe raised exception class EInvalid Graphic Operation with message &quot;Scan line index out of range&quot;. Process stopped....]]></description>
        <author>Klaribel</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856711</guid>
        <pubDate>Fri, 18 Mar 2011 13:27:05 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856711</link>
        <description><![CDATA[Kamenev_D: Ну можно вот так попробывать сделать ч&#092;б. ТОлько по непонятной причине ч&#092;б становится только часть фото. <br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;&nbsp;int Lowpass(BYTE Image[][256], int x, int y)</div><div class="code_line">{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;int Mask[3][3] = {{1, 1, 1,}, {1, 1, 1}, {1, 1, 1}};</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;int i, j, sum=0;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;for (j=-1; j&#60;=1; j++)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (i=-1; i&#60;=1; i++)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sum += Image[x+i][y+j]*Mask[i+1][j+1];</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;return INT(sum/9.0);</div><div class="code_line">}</div><div class="code_line">void __fastcall TForm1::Button1Click(TObject *Sender)</div><div class="code_line">{</div><div class="code_line">&nbsp;&nbsp; BYTE ImageData[256][256], *LinePtr;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;BYTE Output[256][256];</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;int x, y;</div><div class="code_line">&nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;for (y=0; y&#60;=255; y++)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LinePtr = (BYTE *) Image1-&#62;Picture-&#62;Bitmap-&#62;ScanLine[y];</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (x=0; x&#60;=255; x++)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ImageData[x][y] = LinePtr[x];</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; </div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;for (y=1; y&#60;=254; y++)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (x=1; x&#60;=254; x++)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Output[x][y] = Lowpass(ImageData, x, y);</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;for (y=0; y&#60;=255; y++)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LinePtr = (BYTE *) Image1-&#62;Picture-&#62;Bitmap-&#62;ScanLine[y];</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (x=0; x&#60;=255; x++)</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LinePtr[x] = Output[x][y];</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Image1-&#62;Refresh();</div><div class="code_line">}</div></ol></div></div></div></div>]]></description>
        <author>Kamenev_D</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856685</guid>
        <pubDate>Fri, 18 Mar 2011 13:03:31 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856685</link>
        <description><![CDATA[Klaribel: Хм, ну это понятно. Расскажу подробней.<br>У меня есть компоненты Image1 и Image2 и есть кнопка, по нажатию которой картинка Image1 должна становиться серой и выводиться в Image2.<br>Вставляю код в обработчик кнопки и.... из Image1 исчезает картинка, в Image2 ничего не появляется. Подразумеваю, что что-то все таки не так)]]></description>
        <author>Klaribel</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856669</guid>
        <pubDate>Fri, 18 Mar 2011 12:50:07 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856669</link>
        <description><![CDATA[Kamenev_D: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=84786&view=findpost&p=2856646'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Klaribel &#064; <time class="tag-quote__quoted-time" datetime="2011-03-18T12:31:30+00:00">18.03.11, 12:31</time></span><div class='quote '>Подскажите, пожалуйста, </div></div><br>
Тут подразумевается, что на форме есть уже компонент Image, в него уже загружена картинка, а этот код вставлен в обработчик кнопки.]]></description>
        <author>Kamenev_D</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856646</guid>
        <pubDate>Fri, 18 Mar 2011 12:31:30 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=2856646</link>
        <description><![CDATA[Klaribel: Подскажите, пожалуйста, недоделанному программисту, если это код перевода цветного изображения в оттенки серого:<br>
int Height =  Image-&gt;Picture-&gt;Bitmap-&gt;Height;<br>
 int Width =  Image-&gt;Picture-&gt;Bitmap-&gt;Width*3;<br>
 byte ColorMid;<br>
 byte* ptr;<br>
 for(int y = 0; y &lt; Height; y++) {<br>
    ptr = (byte*) Image-&gt;Picture-&gt;Bitmap-&gt;ScanLine[y];<br>
    for(int x = 0; x &lt; Width; x+=3) {<br>
     ColorMid = Gray(ptr[x], ptr[x+1], ptr[x+2]);<br>
     ptr[x+2] = ColorMid;<br>
     ptr[x+1] = ColorMid;<br>
     ptr[x] = ColorMid;<br>
    }<br>
 }<br>
<br>
То, где окончание? То есть как на форму вывести результат - фото в оттенках серого?]]></description>
        <author>Klaribel</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=746630</guid>
        <pubDate>Sun, 12 Jun 2005 05:40:11 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=746630</link>
        <description><![CDATA[Adil: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=84786&view=findpost&p=625186'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>gastroler &#064; <time class="tag-quote__quoted-time" datetime="2005-02-27T17:18:56+00:00">27.02.05, 17:18</time></span><div class='quote '>Да, мне надо чисто только черный и только белый. </div></div><br>
А свойство TBitmap::Monochrome в true не пробовал выставить?]]></description>
        <author>Adil</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=746469</guid>
        <pubDate>Sat, 11 Jun 2005 19:09:12 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=746469</link>
        <description><![CDATA[orb: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=84786&view=findpost&p=625193'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>Мяут&#045;Настоящий &#064; <time class="tag-quote__quoted-time" datetime="2005-02-27T17:25:33+00:00">27.02.05, 17:25</time></span><div class='quote '>Где Gray определено как Y:<br>
#define Gray(R, G, B) (R*.257 + G*.504+B*.098+16.)</div></div>У фотошопа есть отличия притом я их вижу невооруженным глазом<br>
Фотошоп сделал более контрастно]]></description>
        <author>orb</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=625236</guid>
        <pubDate>Sun, 27 Feb 2005 18:41:02 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=625236</link>
        <description><![CDATA[Мяут: Сори. Просто тут совсем запарился. Извини - больще не повториться ;)]]></description>
        <author>Мяут</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=625232</guid>
        <pubDate>Sun, 27 Feb 2005 18:36:06 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=625232</link>
        <description><![CDATA[NoeR: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '>ЗЫ. NoeR, стравьте копирайты</div></div><br>
У Вас слишком высокая самооценка, я поставил копирайт&#33;]]></description>
        <author>NoeR</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=625193</guid>
        <pubDate>Sun, 27 Feb 2005 17:25:33 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=625193</link>
        <description><![CDATA[Мяут: Черно-белый:<br>
<br>
(Можно и через сканлайны)<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;int Height = &nbsp;Image-&#62;Picture-&#62;Bitmap-&#62;Height;</div><div class="code_line">&nbsp;int Width = &nbsp;Image-&#62;Picture-&#62;Bitmap-&#62;Width;</div><div class="code_line">&nbsp;byte Luminance = 128;</div><div class="code_line">&nbsp;byte Color[3];</div><div class="code_line">&nbsp;byte ColorMid;</div><div class="code_line">&nbsp;for(int y = 0; y &#60; Height; y++) {</div><div class="code_line">&nbsp;&nbsp; &nbsp;for(int x = 0; x &#60; Width; x++) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; Color[0] = GetRValue(Image-&#62;Picture-&#62;Bitmap-&#62;Canvas-&#62;Pixels[x][y]);</div><div class="code_line">&nbsp;&nbsp; &nbsp; Color[1] = GetGValue(Image-&#62;Picture-&#62;Bitmap-&#62;Canvas-&#62;Pixels[x][y]);</div><div class="code_line">&nbsp;&nbsp; &nbsp; Color[2] = GetBValue(Image-&#62;Picture-&#62;Bitmap-&#62;Canvas-&#62;Pixels[x][y]);</div><div class="code_line">&nbsp;&nbsp; &nbsp; ColorMid = Gray(ptr[x], ptr[x+1], ptr[x+2]);</div><div class="code_line">&nbsp;&nbsp; &nbsp; if(ColorMid &#60; Luminance) Image-&#62;Picture-&#62;Bitmap-&#62;Canvas-&#62;Pixels[x][y] = 0x000000;</div><div class="code_line">&nbsp;&nbsp; &nbsp; else Image-&#62;Picture-&#62;Bitmap-&#62;Canvas-&#62;Pixels[x][y] = 0xFFFFFF;</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;}</div></ol></div></div></div></div><br>
<br>
Оттенки серого:<br>
<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;&nbsp;int Height = &nbsp;Image-&#62;Picture-&#62;Bitmap-&#62;Height;</div><div class="code_line">&nbsp;int Width = &nbsp;Image-&#62;Picture-&#62;Bitmap-&#62;Width*3;</div><div class="code_line">&nbsp;byte ColorMid;</div><div class="code_line">&nbsp;byte* ptr;</div><div class="code_line">&nbsp;for(int y = 0; y &#60; Height; y++) {</div><div class="code_line">&nbsp;&nbsp; &nbsp;ptr = (byte*) Image-&#62;Picture-&#62;Bitmap-&#62;ScanLine[y];</div><div class="code_line">&nbsp;&nbsp; &nbsp;for(int x = 0; x &#60; Width; x+=3) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; ColorMid = Gray(ptr[x], ptr[x+1], ptr[x+2]);</div><div class="code_line">&nbsp;&nbsp; &nbsp; ptr[x+2] = ColorMid;</div><div class="code_line">&nbsp;&nbsp; &nbsp; ptr[x+1] = ColorMid;</div><div class="code_line">&nbsp;&nbsp; &nbsp; ptr[x] = ColorMid;</div><div class="code_line">&nbsp;&nbsp; &nbsp;}</div><div class="code_line">&nbsp;}</div></ol></div></div></div></div><br>
<br>
Где Gray определено как Y:<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">#define Gray(R, G, B) (R*.257 + G*.504+B*.098+16.)</div></ol></div></div></div></div><br>
<br>
ЗЫ. NoeR, стравьте копирайты  ;)]]></description>
        <author>Мяут</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=625186</guid>
        <pubDate>Sun, 27 Feb 2005 17:18:56 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=625186</link>
        <description><![CDATA[gastroler: Да, мне надо чисто только черный и только белый.]]></description>
        <author>gastroler</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=625122</guid>
        <pubDate>Sun, 27 Feb 2005 15:24:54 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=625122</link>
        <description><![CDATA[trainer: <div class='tag-quote'><a class='tag-quote-link' href='https://forum.sources.ru/index.php?showtopic=84786&view=findpost&p=624926'><span class='tag-quote-prefix'>Цитата</span></a> <span class='tag-quote__quote-info'>NoeR &#064; <time class="tag-quote__quoted-time" datetime="2005-02-27T10:25:52+00:00">27.02.05, 10:25</time></span><div class='quote '>Ну код же вроде пашет</div></div>Он использует неправильный алгоритм определения яркости(оттенка серого).]]></description>
        <author>trainer</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=625042</guid>
        <pubDate>Sun, 27 Feb 2005 13:32:48 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=625042</link>
        <description><![CDATA[NoeR: Вообщето в моем понимание серое это считаеться черно-белое или тебе надо чисто только черный и только белый ?]]></description>
        <author>NoeR</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=625005</guid>
        <pubDate>Sun, 27 Feb 2005 12:23:01 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=625005</link>
        <description><![CDATA[gastroler: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '><br>
  int r = 0, g = 0, b = 0, color = 0;<br>
         for(int y = 0; y &lt; Image-&gt;Height; y++){<br>
            ptr = (Byte*)Image-&gt;ScanLine[y];<br>
            for (int x = 0; x &lt; Image-&gt;Width * 3; x+=3) {<br>
               r = ptr[x];   //Получаем<br>
               g = ptr[x+1]; //значения<br>
               b = ptr[x+2]; //каналов<br>
               color = (r + g + b) / 3; //Выссчитываем среднее значение<br>
               ptr[x]   = color;<br>
               ptr[x+1] = color;<br>
               ptr[x+2] = color;<br>
         }<br>
         }<br>
</div></div><br>
Мне  кажется, что это преобразование не в черно-белое, а в серое.<br>
 <br>
<div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <div class='quote '><br>
 а с ссылок этих я например не понял как сделать серую картинку...<br>
</div></div><br>
Солидарен c NoeR]]></description>
        <author>gastroler</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=624926</guid>
        <pubDate>Sun, 27 Feb 2005 10:25:52 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=624926</link>
        <description><![CDATA[NoeR: <strong class='tag-b'>trainer</strong>, Ну код же вроде пашет, а с ссылок этих я например не понял как сделать серую картинку...]]></description>
        <author>NoeR</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=624836</guid>
        <pubDate>Sun, 27 Feb 2005 07:44:47 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=624836</link>
        <description><![CDATA[trainer: <strong class='tag-b'>Noer</strong>, этот вариант неправильный. Правильно - использовать компоненту Y(яркость) кодировки YUV.<br>
Примеры - здесь: http://sources.ru/builder/faq/027.html или здесь: <a class='tag-url' href='http://forum.sources.ru/index.php?showtopic=84770' target='_blank'>RGB to YUV и обратно</a>]]></description>
        <author>trainer</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=624727</guid>
        <pubDate>Sat, 26 Feb 2005 22:20:18 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=624727</link>
        <description><![CDATA[NoeR: <div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; int r = 0, g = 0, b = 0, color = 0;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; for(int y = 0; y &#60; Image-&#62;Height; y++){</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ptr = (Byte*)Image-&#62;ScanLine[y];</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (int x = 0; x &#60; Image-&#62;Width * 3; x+=3) {</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; r = ptr[x]; &nbsp; //Получаем</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g = ptr[x+1]; //значения</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b = ptr[x+2]; //каналов</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; color = (r + g + b) / 3; //Выссчитываем среднее значение</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ptr[x] &nbsp; = color;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ptr[x+1] = color;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ptr[x+2] = color;</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; }</div><div class="code_line">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; }</div></ol></div></div></div></div><br>
(с) Мяут ;)]]></description>
        <author>NoeR</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=624705</guid>
        <pubDate>Sat, 26 Feb 2005 21:35:26 +0000</pubDate>
        <title>Как сделать черно-белое изображение</title>
        <link>https://forum.sources.ru/index.php?showtopic=84786&amp;view=findpost&amp;p=624705</link>
        <description><![CDATA[gastroler: Имеется  цветной рисунок нужно из него сделать  черно-белый. <br> &lt;_&lt;]]></description>
        <author>gastroler</author>
        <category>Borland C++ Builder/Turbo C++ Explorer</category>
      </item>
	
      </channel>
      </rss>
	