CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2000
    Posts
    12

    Polygon API Function

    I am on that since this morning.
    Sometimes it draw corectly my polygon, but in 90% it does not
    work even if it's EXACTLY the same instructions !!!!!!


    SOS


  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: Polygon API Function

    Giving "those" instructions could have been better !

    May be it got something to do with ScaleMode property of Form/Picture box on which you are drawing. Most API fns assume pixel mode. So change to VbPixels mode and try.

    or post that code.........

    RK

  3. #3
    Join Date
    Feb 2000
    Posts
    12

    Re: Polygon API Function

    i found it last week

    changing

    type PointType
    x as integer
    y as integer
    end type


    by long variable x as long and y as long.


    do not ask me why




  4. #4
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Polygon API Function

    Did you copy the POINTAPI structure from VB4 16bit ? or did you convert it from the original C header ?

    A M$ C int is a 32bit integer - which is a Long in Visual Basic.


    By the way - if you're interested in doing some fast polygon programming in VB, take a look at :

    http://codeguru.developer.com/vb/articles/2024.shtml


    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured