<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Масштабирование в gdi+]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8935&amp;type=atom" />
	<updated>2013-11-27T19:09:49Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8935</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Масштабирование в gdi+]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=77644#p77644" />
			<content type="html"><![CDATA[<p>Точно. Все работает. Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[pant-79]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=960</uri>
			</author>
			<updated>2013-11-27T19:09:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=77644#p77644</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Масштабирование в gdi+]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=77568#p77568" />
			<content type="html"><![CDATA[<p>Используй StretchBlt(), она работает аналогично BitBlt(), но с возможностью масштабирования.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2013-11-26T13:21:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=77568#p77568</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Масштабирование в gdi+]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=77524#p77524" />
			<content type="html"><![CDATA[<p>Имеется стандартное окно gui, на котором расположен элемент управления picture c заданным хендлом, то бишь:<br /></p><div class="codebox"><pre><code>Gui, Add, Pic, x10 y10 w400 h400 hwndhPic  gRepaint </code></pre></div><p>после создания окна к этой картинке привязывается график с возможностью рисования на нем:<br /></p><div class="codebox"><pre><code>
   hbm := CreateDIBSection(Width, Height)
   hdc := CreateCompatibleDC()
   obm := SelectObject(hdc, hbm)
   G := Gdip_GraphicsFromHDC(hdc)
   Gdip_SetSmoothingMode(G, 2)              
   Gdip_FillRoundedRectangle(G, pWhiteBrush, 0, 0, Width, Height, 2) 
   hPicDC := GetDC(hPic)  
   BitBlt(hPicDC, 0, 0, Width, Height, hdc, 0, 0) 
 </code></pre></div><p>Далее в этом контроле можно чего-нибудь рисовать, ну это уже <a href="http://forum.script-coding.com/viewtopic.php?id=5571&amp;p=3">обсужденная тема</a>. Вопрос в другом.<br />Если теперь прикрутить к этой картинке возможность изменять ее размеры при помощи <em>guicontrol, move...</em>, а также заставить ее при этом перерисовываться при помощи <em>BitBlt(hPicDC, 0, 0, Width, Height, hdc, 0, 0)</em>, то можно будет сдвигать ее края, что приведет к обычной обрезке получившегося рисунка. <br />Вопрос такой: есть ли возможность при помощи средств AHK и gdip сделать так, чтобы рисунок не обрезался, а масштабировался?</p>]]></content>
			<author>
				<name><![CDATA[pant-79]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=960</uri>
			</author>
			<updated>2013-11-24T18:30:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=77524#p77524</id>
		</entry>
</feed>
