|
-
February 17th, 2000, 04:17 PM
#1
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
-
February 18th, 2000, 12:53 AM
#2
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
-
March 1st, 2000, 04:39 PM
#3
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
-
March 1st, 2000, 04:48 PM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|