Click to See Complete Forum and Search --> : Polygon API Function
DavidTu
February 17th, 2000, 03:17 PM
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
Ravi Kiran
February 17th, 2000, 11:53 PM
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
DavidTu
March 1st, 2000, 03:39 PM
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
Chris Eastwood
March 1st, 2000, 03:48 PM
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
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.