=== Pen drawing mode ===
 
=== Pen drawing mode ===
Using pen mode is more complicated but it is always only way to draw primitives to palette based rastports. You should always obtain the pen using your preferred color. When terminating your rendering target you have to release the drawing pen.
+
Using pen mode is more complicated, but it is always only way to draw primitives to palette based rastports. You should always obtain the pen using your preferred color. When terminating your rendering target you have to release the drawing pen.
    
<source lang="c">
 
<source lang="c">
 
</source>
 
</source>