<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: ScreenCapture utility	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/screencapture-utility/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/screencapture-utility?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=screencapture-utility</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Wed, 26 Dec 2018 08:30:38 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.3</generator>
	<item>
		<title>
		By: Sajad Rahmdel		</title>
		<link>https://undocumentedmatlab.com/articles/screencapture-utility#comment-456516</link>

		<dc:creator><![CDATA[Sajad Rahmdel]]></dc:creator>
		<pubDate>Wed, 26 Dec 2018 08:30:38 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3059#comment-456516</guid>

					<description><![CDATA[Thank you]]></description>
			<content:encoded><![CDATA[<p>Thank you</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Note: export_fig File Exchange Utility &#8211; Nguyen Quan Ba Hong		</title>
		<link>https://undocumentedmatlab.com/articles/screencapture-utility#comment-429946</link>

		<dc:creator><![CDATA[Note: export_fig File Exchange Utility &#8211; Nguyen Quan Ba Hong]]></dc:creator>
		<pubDate>Fri, 15 Jun 2018 18:13:24 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3059#comment-429946</guid>

					<description><![CDATA[[&#8230;] interested in high-fidelity export might also consider using Yair&#8217;s ScreenCapture utility. Unlike export_fig, which uses MATLAB&#8217;s builtin print function to generate (&#038; fix) the [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] interested in high-fidelity export might also consider using Yair&#8217;s ScreenCapture utility. Unlike export_fig, which uses MATLAB&#8217;s builtin print function to generate (&amp; fix) the [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Guillaume		</title>
		<link>https://undocumentedmatlab.com/articles/screencapture-utility#comment-391704</link>

		<dc:creator><![CDATA[Guillaume]]></dc:creator>
		<pubDate>Thu, 27 Oct 2016 05:56:37 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3059#comment-391704</guid>

					<description><![CDATA[Hi Yair,

I successfully use screencapture along with imwrite to save a screenshot of a maximized figure, however I can see some funny results on the bottom and left edges of the saved .png.

See https://cloud.githubusercontent.com/assets/3498686/19756046/b72e277c-9c65-11e6-901a-a862f3ef5fdc.png
 

Code:
&lt;pre lang=&quot;matlab&quot;&gt;
% preserve the color scheme
set(hFig, &#039;InvertHardcopy&#039;, &#039;off&#039;);

drawnow;

% force figure full screen
try
    warning(&#039;off&#039;, &#039;MATLAB:HandleGraphics:ObsoletedProperty:JavaFrame&#039;);
    frame_h = get(handle(hFig), &#039;JavaFrame&#039;);
    set(frame_h, &#039;Maximized&#039;, 1);
catch
    disp([&#039;Warning : JavaFrame feature not supported. Figure is going full &#039; ...
        &#039;screen using normalised units which does not give best results.&#039;]);
    oldUnits = get(hFig, &#039;Units&#039;);
    set(hFig, &#039;Units&#039;, &#039;norm&#039;, &#039;Pos&#039;, [0, 0, 1, 1]);
    set(hFig, &#039;Units&#039;, oldUnits);
end

% screencapture creates an image of what is really displayed on
% screen.
imwrite(screencapture(hPanel), fileDestination);
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>Hi Yair,</p>
<p>I successfully use screencapture along with imwrite to save a screenshot of a maximized figure, however I can see some funny results on the bottom and left edges of the saved .png.</p>
<p>See <a href="https://cloud.githubusercontent.com/assets/3498686/19756046/b72e277c-9c65-11e6-901a-a862f3ef5fdc.png" rel="nofollow ugc">https://cloud.githubusercontent.com/assets/3498686/19756046/b72e277c-9c65-11e6-901a-a862f3ef5fdc.png</a></p>
<p>Code:</p>
<pre lang="matlab">
% preserve the color scheme
set(hFig, 'InvertHardcopy', 'off');

drawnow;

% force figure full screen
try
    warning('off', 'MATLAB:HandleGraphics:ObsoletedProperty:JavaFrame');
    frame_h = get(handle(hFig), 'JavaFrame');
    set(frame_h, 'Maximized', 1);
catch
    disp(['Warning : JavaFrame feature not supported. Figure is going full ' ...
        'screen using normalised units which does not give best results.']);
    oldUnits = get(hFig, 'Units');
    set(hFig, 'Units', 'norm', 'Pos', [0, 0, 1, 1]);
    set(hFig, 'Units', oldUnits);
end

% screencapture creates an image of what is really displayed on
% screen.
imwrite(screencapture(hPanel), fileDestination);
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Peter Newton		</title>
		<link>https://undocumentedmatlab.com/articles/screencapture-utility#comment-385340</link>

		<dc:creator><![CDATA[Peter Newton]]></dc:creator>
		<pubDate>Tue, 09 Aug 2016 12:47:53 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3059#comment-385340</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/screencapture-utility#comment-385337&quot;&gt;Peter Newton&lt;/a&gt;.

Hi,
I have found this web page and have resolve my problem, as they say read the manual first.
&lt;a href=&quot;https://github.com/altmany/export_fig&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://github.com/altmany/export_fig&lt;/a&gt;
sorry to have waisted your time.
Regards
Peter]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/screencapture-utility#comment-385337">Peter Newton</a>.</p>
<p>Hi,<br />
I have found this web page and have resolve my problem, as they say read the manual first.<br />
<a href="https://github.com/altmany/export_fig" target="_blank" rel="nofollow">https://github.com/altmany/export_fig</a><br />
sorry to have waisted your time.<br />
Regards<br />
Peter</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Peter Newton		</title>
		<link>https://undocumentedmatlab.com/articles/screencapture-utility#comment-385337</link>

		<dc:creator><![CDATA[Peter Newton]]></dc:creator>
		<pubDate>Tue, 09 Aug 2016 12:21:44 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3059#comment-385337</guid>

					<description><![CDATA[Hi, 
Many thanks for a great screenshot utility. I have a question in that I want to use a variable fname2 that will have a difference file name each time I use it. The problem I am having is I can’t get the export_fig script to take the fname2 variable with the size of the screenshot to work together. I have tried putting the fname2 along with the screenshot variables into one variable, it does run it but includes the screenshot variables in the file name and ignores them. Does anyone have any ideal how I can get this to work, below is an example of what I am trying, 
&lt;pre lang=&quot;matlab&quot;&gt;export_fig (fname3) -m2.5 -c[05 465 250 65] ;&lt;/pre&gt;
regards 
Peter]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
Many thanks for a great screenshot utility. I have a question in that I want to use a variable fname2 that will have a difference file name each time I use it. The problem I am having is I can’t get the export_fig script to take the fname2 variable with the size of the screenshot to work together. I have tried putting the fname2 along with the screenshot variables into one variable, it does run it but includes the screenshot variables in the file name and ignores them. Does anyone have any ideal how I can get this to work, below is an example of what I am trying, </p>
<pre lang="matlab">export_fig (fname3) -m2.5 -c[05 465 250 65] ;</pre>
<p>regards<br />
Peter</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rocco		</title>
		<link>https://undocumentedmatlab.com/articles/screencapture-utility#comment-384283</link>

		<dc:creator><![CDATA[Rocco]]></dc:creator>
		<pubDate>Wed, 27 Jul 2016 17:00:57 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3059#comment-384283</guid>

					<description><![CDATA[Hi Yair, thanks for the reply. Very useful utility especially when used with frameless (undecorated) figure windows you mention above !]]></description>
			<content:encoded><![CDATA[<p>Hi Yair, thanks for the reply. Very useful utility especially when used with frameless (undecorated) figure windows you mention above !</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/screencapture-utility#comment-384262</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Wed, 27 Jul 2016 11:57:36 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3059#comment-384262</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/screencapture-utility#comment-384222&quot;&gt;Kurt&lt;/a&gt;.

@Kurt - perhaps your figure is not visible on-screen (minimized, hidden, or not yet fully-rendered) when you take the screenshot.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/screencapture-utility#comment-384222">Kurt</a>.</p>
<p>@Kurt &#8211; perhaps your figure is not visible on-screen (minimized, hidden, or not yet fully-rendered) when you take the screenshot.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Kurt		</title>
		<link>https://undocumentedmatlab.com/articles/screencapture-utility#comment-384222</link>

		<dc:creator><![CDATA[Kurt]]></dc:creator>
		<pubDate>Tue, 26 Jul 2016 21:14:15 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3059#comment-384222</guid>

					<description><![CDATA[When I run this code I get a black box and not the screen capture.  Is there something I need or am doing wrong?  I have both files in the same directory.  Thanks.]]></description>
			<content:encoded><![CDATA[<p>When I run this code I get a black box and not the screen capture.  Is there something I need or am doing wrong?  I have both files in the same directory.  Thanks.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/screencapture-utility#comment-383224</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sat, 16 Jul 2016 20:35:21 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3059#comment-383224</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/screencapture-utility#comment-383010&quot;&gt;Rocco&lt;/a&gt;.

@Rocco - the ScreenCapture utility returns an imageData array that you can then use in Matlab, without needing to save and load from file. Read the utility&#039;s documentation carefully for details. Contact me offline (email) if you still need additional consulting.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/screencapture-utility#comment-383010">Rocco</a>.</p>
<p>@Rocco &#8211; the ScreenCapture utility returns an imageData array that you can then use in Matlab, without needing to save and load from file. Read the utility&#8217;s documentation carefully for details. Contact me offline (email) if you still need additional consulting.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rocco		</title>
		<link>https://undocumentedmatlab.com/articles/screencapture-utility#comment-383010</link>

		<dc:creator><![CDATA[Rocco]]></dc:creator>
		<pubDate>Thu, 14 Jul 2016 14:33:11 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3059#comment-383010</guid>

					<description><![CDATA[Yair, 
I am new to this community and I have been trying to do exactly what your ScreenCapture utility does, with one important twist.  Is there a way to capture a non-matlab figure with the mouse and bring it into the matlab workspace automatically without having to save and import the data? Say I am drawing on a pen-tablet and want to select/capture a region of the drawing and bring it into matlab programmatically as rgb pixels.  Is this possible? I have attempted to hire someone on freelancer to do this without luck.  If it can be done in Matlab, let&#039;s talk $ for a stand-alone executable.  Thanks!]]></description>
			<content:encoded><![CDATA[<p>Yair,<br />
I am new to this community and I have been trying to do exactly what your ScreenCapture utility does, with one important twist.  Is there a way to capture a non-matlab figure with the mouse and bring it into the matlab workspace automatically without having to save and import the data? Say I am drawing on a pen-tablet and want to select/capture a region of the drawing and bring it into matlab programmatically as rgb pixels.  Is this possible? I have attempted to hire someone on freelancer to do this without luck.  If it can be done in Matlab, let&#8217;s talk $ for a stand-alone executable.  Thanks!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
