Click here to Skip to main content
15,894,907 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Image resizing algorithm (bilinear) Pin
Andrew Kirillov27-May-05 22:03
Andrew Kirillov27-May-05 22:03 
GeneralRe: Image resizing algorithm (bilinear) Pin
Christian Graus28-May-05 11:57
protectorChristian Graus28-May-05 11:57 
GeneralRe: Image resizing algorithm (bilinear) Pin
Chris Losinger29-May-05 5:31
professionalChris Losinger29-May-05 5:31 
GeneralThanks for your replies (nt) Pin
Anonymous29-May-05 4:40
Anonymous29-May-05 4:40 
GeneralPoint on a line Pin
rocky_pulley27-May-05 16:40
rocky_pulley27-May-05 16:40 
GeneralRe: Point on a line Pin
Jack Puppy27-May-05 17:33
Jack Puppy27-May-05 17:33 
GeneralRe: Point on a line Pin
rocky_pulley28-May-05 4:17
rocky_pulley28-May-05 4:17 
GeneralRe: Point on a line Pin
Ted Ferenc28-May-05 4:38
Ted Ferenc28-May-05 4:38 
I did this c. 30 years ago using Fortran, but I can't remember how we did it! and I still have the source code!

The last time I did it I cheated and use PtInRect, I assume the mouse could be X pixels away from the line? If so then just create a bounding rectange and check if the mouse position is within the rectangle or if it must be on the line just make a 1 pixel rectangle.

You will need to 'cheat' slightly the docs state "A point on the right or bottom side is considered outside the rectangle." so make the rectangle 1 pixel too big on these axis.



"An education isn't how much you have committed to memory, or even how much you know. It's being able to differentiate between what you do know and what you don't." - Anatole France
GeneralRe: Point on a line Pin
Christian Graus28-May-05 11:59
protectorChristian Graus28-May-05 11:59 
GeneralLoadFrame Fails on target machine Pin
drallen127-May-05 12:28
drallen127-May-05 12:28 
GeneralThrowing Exceptions during Message handling Pin
Uwe Keim27-May-05 12:18
sitebuilderUwe Keim27-May-05 12:18 
GeneralRe: Throwing Exceptions during Message handling Pin
Uwe Keim27-May-05 13:13
sitebuilderUwe Keim27-May-05 13:13 
Questioncasting char to wchar? Pin
bobhou27-May-05 11:03
bobhou27-May-05 11:03 
AnswerRe: casting char to wchar? Pin
Jack Puppy27-May-05 13:47
Jack Puppy27-May-05 13:47 
AnswerRe: casting char to wchar? Pin
ThatsAlok27-May-05 19:10
ThatsAlok27-May-05 19:10 
GeneralRe: casting char to wchar? Pin
Tim Smith28-May-05 6:29
Tim Smith28-May-05 6:29 
GeneralRe: casting char to wchar? Pin
Jörgen Sigvardsson28-May-05 6:39
Jörgen Sigvardsson28-May-05 6:39 
GeneralRe: casting char to wchar? Pin
Tim Smith30-May-05 7:33
Tim Smith30-May-05 7:33 
GeneralRe: casting char to wchar? Pin
Jörgen Sigvardsson30-May-05 7:36
Jörgen Sigvardsson30-May-05 7:36 
GeneralRe: casting char to wchar? Pin
bobhou28-May-05 12:55
bobhou28-May-05 12:55 
AnswerRe: casting char to wchar? Pin
Michael Dunn28-May-05 10:14
sitebuilderMichael Dunn28-May-05 10:14 
GeneralRe: casting char to wchar? Pin
bobhou28-May-05 12:53
bobhou28-May-05 12:53 
GeneralRe: casting char to wchar? Pin
Michael Dunn28-May-05 18:19
sitebuilderMichael Dunn28-May-05 18:19 
GeneralRe: casting char to wchar? Pin
bobhou29-May-05 4:01
bobhou29-May-05 4:01 
AnswerRe: casting char to wchar? Pin
Blake Miller31-May-05 6:37
Blake Miller31-May-05 6:37 

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.