Drawing a filled Line by API functions

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Drawing a filled Line by API functions

Phase GmbH
Hi,
I have a propably simple problem:
I want to draw a filled (solid) lin with line width >1 pixel by using API functions.

Until now, I only get an outlined line of the desired width.

What has to be done to get a solid line?

Christian Kreutzfeldt
Reply | Threaded
Open this post in threaded view
|

Re: Drawing a filled Line by API functions

Nathaniel Ryckman
I haven't used the line functions, but, if I had to guess, you probably are selecting a line rather than drawing a line. After you select a line, you could use the fill command from the imageJ menu. You can change the fill color using the Edit->Options->Colors...
Reply | Threaded
Open this post in threaded view
|

Re: Drawing a filled Line by API functions

Michael Schmid
In reply to this post by Phase GmbH
Hi Christian,

if it is a plain line (not the outline of a polygon), use 'fill'  
instead of 'draw'.
A thick line is handled similar to an area in this respect.

Michael
________________________________________________________________

On 24 May 2011, at 18:21, Phase GmbH wrote:

> Hi,
> I have a propably simple problem:
> I want to draw a filled (solid) lin with line width >1 pixel by  
> using API functions.
>
> Until now, I only get an outlined line of the desired width.
>
> What has to be done to get a solid line?
>
> Christian Kreutzfeldt