Click here to Skip to main content
15,891,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Linux and visual c++ Pin
Erik Funkenbusch25-Dec-01 21:07
Erik Funkenbusch25-Dec-01 21:07 
GeneralPb with updating my desktop Pin
23-Dec-01 22:23
suss23-Dec-01 22:23 
GeneralRe: Pb with updating my desktop Pin
Ravi Bhavnani25-Dec-01 6:19
professionalRavi Bhavnani25-Dec-01 6:19 
GeneralTapi - (1 server n-clients) Pin
Sandeep Shetty23-Dec-01 21:04
Sandeep Shetty23-Dec-01 21:04 
GeneralRandom points in a polygon Pin
Paul Selormey23-Dec-01 20:17
Paul Selormey23-Dec-01 20:17 
GeneralRe: Random points in a polygon Pin
Christian Graus25-Dec-01 11:13
protectorChristian Graus25-Dec-01 11:13 
GeneralRe: Random points in a polygon Pin
Paul Selormey25-Dec-01 13:44
Paul Selormey25-Dec-01 13:44 
GeneralRe: Random points in a polygon Pin
Christian Graus26-Dec-01 12:41
protectorChristian Graus26-Dec-01 12:41 
Two ways you could do this:

1. Generate a mask bitmap. Make it black and draw a filled polygon in white. Then for each point you generate, check if that pixel in the mask is white

2. To find out if a point is inside the polygon, use the ratio of x2-x1/y2-y1 to find out the slope of each line. Then use that ratio to figure out if that point is inside that line, or not.




Christian

After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001

Sonork ID 100.10002:MeanManOz
I live in Bob's HungOut now

GeneralRe: Random points in a polygon Pin
Paul Selormey26-Dec-01 13:49
Paul Selormey26-Dec-01 13:49 
GeneralRe: Random points in a polygon Pin
Tim Smith26-Dec-01 14:10
Tim Smith26-Dec-01 14:10 
GeneralRe: Random points in a polygon Pin
Paul Selormey26-Dec-01 14:44
Paul Selormey26-Dec-01 14:44 
GeneralRe: Random points in a polygon Pin
Christian Graus26-Dec-01 14:15
protectorChristian Graus26-Dec-01 14:15 
GeneralSaveDialog Pin
San23-Dec-01 19:09
San23-Dec-01 19:09 
GeneralRe: SaveDialog Pin
Michael Dunn23-Dec-01 19:45
sitebuilderMichael Dunn23-Dec-01 19:45 
Generalc,c++ borland Pin
23-Dec-01 16:35
suss23-Dec-01 16:35 
GeneralAbout Shell Path Pin
23-Dec-01 15:19
suss23-Dec-01 15:19 
QuestionAbout Hook, Could you help me? Pin
23-Dec-01 14:18
suss23-Dec-01 14:18 
GeneralShortcut key Pin
Jason Hooper23-Dec-01 9:46
Jason Hooper23-Dec-01 9:46 
GeneralRe: Shortcut key Pin
Jason Hooper24-Dec-01 10:31
Jason Hooper24-Dec-01 10:31 
GeneralRe: Shortcut key Pin
Jason Hooper24-Dec-01 12:31
Jason Hooper24-Dec-01 12:31 
GeneralBrowse for folder Pin
Peter Liddle23-Dec-01 7:58
Peter Liddle23-Dec-01 7:58 
GeneralRe: Browse for folder Pin
PJ Arends23-Dec-01 8:26
professionalPJ Arends23-Dec-01 8:26 
GeneralDrawing a dotted line Pin
PJ Arends23-Dec-01 7:24
professionalPJ Arends23-Dec-01 7:24 
GeneralRe: Drawing a dotted line Pin
Christian Graus23-Dec-01 10:17
protectorChristian Graus23-Dec-01 10:17 
GeneralRe: Drawing a dotted line Pin
PJ Arends23-Dec-01 22:06
professionalPJ Arends23-Dec-01 22:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.