After a short talk with Sergio, we found that what he wants is to set the points size in map units, just like QGIS does it. <br><br>So he is looking at the setPointSizeUnits method from QgsSymbol class. This way he can&#39;t use QgsVertexMarker (I guess), so he should use a temporal layer.<br>

<br>Germán<br><br><div class="gmail_quote">2009/12/14 Martin Dobias <span dir="ltr">&lt;<a href="http://wonder.sk">wonder.sk</a>@<a href="http://gmail.com">gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

2009/12/11 sergio cavalcante &lt;<a href="mailto:sergio.cavalcante@gmail.com">sergio.cavalcante@gmail.com</a>&gt;:<br>
<div class="im">&gt; Germán! It workerd great!<br>
&gt; As I&#39;m using C++ with Qt, the code to draw just a white point is here:<br>
&gt;<br>
&gt;  QgsVertexMarker *marker = new QgsVertexMarker(m_qgsImage);<br>
&gt;<br>
&gt;  marker-&gt;setCenter( QgsPoint( -51.235, -16.9316 ) );<br>
&gt;  //marker-&gt;setCenter( QgsPoint( -51.235, -16.9316 ) );<br>
&gt;  marker-&gt;setIconType( 3 );<br>
&gt;  marker-&gt;setIconSize( 10 );<br>
&gt;  marker-&gt;setColor( QColor( 255,255,255,255 ) );<br>
&gt;  marker-&gt;setPenWidth ( 1 );<br>
&gt;<br>
&gt; I was very happy...Until I zoomed the area. As a vector, obviously,<br>
&gt; when zoomed, it remained as a small point. And, as I need to draw a<br>
&gt; lot of points to draw a larger image composed by them, I needed that<br>
&gt; this zoom to escale the point like a raster file. Is there a way to<br>
&gt; plot the point onto the rasterfile?<br>
<br>
</div>Hi Sergio,<br>
<br>
what are you actually trying to do? Draw an image on the canvas at<br>
some specified place? You might want to create a class derived from<br>
QgsMapCanvasItem that would do the rendering in a way you want it to<br>
be.<br>
<font color="#888888"><br>
Martin<br>
</font></blockquote></div>-- <br>-----------<br>   |\__  <br>(:&gt;__)(<br>   |/    <br><br>Soluciones Geoinformáticas Libres                            <br><a href="http://geotux.tuxfamily.org/">http://geotux.tuxfamily.org/</a><br>