Go to previous topic
Go to next topic
Last Post 11 Feb 2004 02:16 PM by  mikee@logicpd.com
drawing lines
 1 Replies
Author Messages
michal.barmeir@mobileye.com
New Member
New Member
Posts:


--
08 Feb 2004 02:38 AM
    hi,
    I'm having problems drawing positive slope diagonal lines.
    I wrote:
    SWIM_WINDOW_T* pwin = (SWIM_WINDOW_T*)&window[0];
    swim_put_line (pwin, 10,10, 200, 300);//negative slope diagonal line
    swim_put_line (pwin, 10,10, 10, 300); //vertical line
    swim_put_line (pwin, 10,300, 200,10);//positive slope diagonal line
    swim_put_line (pwin, 10,300, 200,300);//horizontal line

    I get all lines but the positive slope one is drawn on the negative one i.e

    swim_put_line (pwin, 10,10, 200, 300);//negative slope diagonal line
    swim_put_line (pwin, 10,300, 200,10);//positive slope diagonal line
    are drawn as the same line.
    Any tips?
    Michal
    mikee@logicpd.com
    New Member
    New Member
    Posts:


    --
    11 Feb 2004 02:16 PM
    michalb,

    I'm not immeadiately recognizing the code you are using. Is it part of the Sharp Bluestreak library? If it is, you may have better luck hearing directly from one of their developers if you post on the Sharp forum located at: http://forums.sharpsma.com.

    If not, please post back here.

    Regards,
    --mikee


    ---