pdc-LineTo( m_One.x + int( - Par * cosy - ( Par / 2.0 * siny ) ), m_One.y + int( - Par * siny + ( Par / 2.0 * cosy ) ) ); pdc-LineTo( m_One.x + int( - Par * cosy + ( Par / 2.0 * siny ) ), m_One.y - int( Par / 2.0 * cosy + Par * siny ) ); I can't understand this part of the code,either!I would be very grateful if you could explain it.
ReplyHello. I don`t understand the mathematical formula, please explain it. Thank you!Reply
Hello. I don`t understand mathematical formula, please explain it. Thank you!Reply
Originally posted by: Ox
Plese explain mathematical, the formula u use for draw the arrow, and can u show how long it is the arrow?
ReplyOriginally posted by: Makarand
Hi do u have a VB equivalent version of the code?Reply
Also i need only one directional arrow and is there a way to select the line with arrow and delete it?
Originally posted by: Pk Reddy
Hello,
I am trying to implement drawing of an arrow using mouse in a scroll view and have implemented automatic scrolling of scroll view when the mouse moves out of its bounds.
I am having a few problems in getting the arrow drawn correctly when the view is scrolled. The initial point loses it focus and continues to be drawn in the view which is visible. Can someone implement a program to show how we can draw an arrow in a scroll view with automatic scrolling.
regards
Pavan
Originally posted by: wham
I couldn't find the angle parameter in your arithmetic.
Would you please tell me how to change?
Originally posted by: Tenalibabu
This is a really good idea but it fails when you try to select a pen and draw colored linesReplyFor example i added this.
//r, g, b, m_iPenwidth are integer values
CPen m_pCurpen(PS_SOLID, m_iPenwidth, RGB(r,g,b));
canvas.SelectObject(&m_pCurpen);When using a pen you cannot use the code R2_NOT for ROP2.
Is there a way to draw colored lines? I've tried all the ROP2 codes (R2_NOT, NOTMASKPEN, MASKPEN, etc)
Can someone help?
Originally posted by: Alex Ndungu
You have saved a friend of mine a load of trouble. You will be duly acknowledged.
Originally posted by: Javed Lodhi
Good work. I know what it takes to even draw a single arrow.Reply