<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/261293</link>
    <title>MATLAB Central Newsreader - paint skips coordinates :( help!</title>
    <description>Feed for thread: paint skips coordinates :( help!</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 21 Sep 2009 15:26:20 -0400</pubDate>
      <title>paint skips coordinates :( help!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/261293#681566</link>
      <author>Shamane </author>
      <description>Hi All! :)&lt;br&gt;
&lt;br&gt;
I am trying to paint different colours on images read in to the GUI, and have managed to do so according to the mouse click and movement. However, now there's one problem. It will only paint freehand if I move my mouse slowly. However, should my mouse move fast, the paint will skip quite a few coordinates and you will only see splashes of dots scattered along the lines I drew. Is there a way to help this? Thank you so much in advance!!&lt;br&gt;
&lt;br&gt;
Here's a snippet of the code:&lt;br&gt;
&lt;br&gt;
function MouseMotionFcn(gcbo,eventdata,handles)&lt;br&gt;
&lt;br&gt;
handles = guidata(gcbo);&lt;br&gt;
&lt;br&gt;
if handles.drawFlag&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
clicked = get(gca, 'currentpoint');&lt;br&gt;
&amp;nbsp;xi = ceil(clicked(1,1));&lt;br&gt;
&amp;nbsp;yi = ceil(clicked(1,2));&lt;br&gt;
handles.color = handles.mGetColorFcn();&lt;br&gt;
&lt;br&gt;
p = plot(xi, yi);&lt;br&gt;
set(p,'marker','.') &lt;br&gt;
set(p,'markersize',30)&lt;br&gt;
set(p,'Color', handles.color);&lt;br&gt;
&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
guidata(gcbo,handles); </description>
    </item>
  </channel>
</rss>

