Click here to Skip to main content
15,887,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: Converting Y up to Y down coordinates Pin
OriginalGriff22-Nov-14 23:15
mveOriginalGriff22-Nov-14 23:15 
GeneralRe: Converting Y up to Y down coordinates Pin
SledgeHammer0123-Nov-14 9:01
SledgeHammer0123-Nov-14 9:01 
GeneralRe: Converting Y up to Y down coordinates Pin
SledgeHammer0123-Nov-14 9:08
SledgeHammer0123-Nov-14 9:08 
GeneralRe: Converting Y up to Y down coordinates Pin
SledgeHammer0123-Nov-14 9:14
SledgeHammer0123-Nov-14 9:14 
GeneralRe: Converting Y up to Y down coordinates Pin
SledgeHammer0123-Nov-14 8:10
SledgeHammer0123-Nov-14 8:10 
GeneralRe: Converting Y up to Y down coordinates Pin
SledgeHammer0123-Nov-14 8:11
SledgeHammer0123-Nov-14 8:11 
GeneralRe: Converting Y up to Y down coordinates Pin
Richard MacCutchan23-Nov-14 22:03
mveRichard MacCutchan23-Nov-14 22:03 
GeneralRe: Converting Y up to Y down coordinates Pin
SledgeHammer0123-Nov-14 8:31
SledgeHammer0123-Nov-14 8:31 
Wait a sec here... I'm testing this out...

Lets say I pass in 0 through 10

So 0 should transform to 29
and 10 should transform to 0

0 through 10 is 11 pixels

((0 + 0) / 11 * 30) = 0, 29 - 0 = 29, so that works
((10 + 0) / 11 * 30) = 27.27, 29 - 27.27 = 1.73 which doesn't work.

even if I do the multiplication first,

((10 + 0) * 30 / 11) = 27.27
GeneralRe: Converting Y up to Y down coordinates Pin
SledgeHammer0123-Nov-14 8:46
SledgeHammer0123-Nov-14 8:46 
AnswerRe: Converting Y up to Y down coordinates Pin
BillWoodruff23-Nov-14 1:00
professionalBillWoodruff23-Nov-14 1:00 
GeneralRe: Converting Y up to Y down coordinates Pin
SledgeHammer0123-Nov-14 8:13
SledgeHammer0123-Nov-14 8:13 
QuestionLooking for books recommendations to learn specifically about DB using .NET and C# Pin
Member 1000166322-Nov-14 8:04
Member 1000166322-Nov-14 8:04 
AnswerRe: Looking for books recommendations to learn specifically about DB using .NET and C# Pin
BillWoodruff22-Nov-14 8:33
professionalBillWoodruff22-Nov-14 8:33 
QuestionIBM - ILog Diagram: Find node position in pixel Pin
hassan faghihi21-Nov-14 22:20
professionalhassan faghihi21-Nov-14 22:20 
QuestionPocketSphinx Pin
Member 1001593821-Nov-14 7:54
Member 1001593821-Nov-14 7:54 
AnswerRe: PocketSphinx Pin
Dave Kreskowiak21-Nov-14 8:39
mveDave Kreskowiak21-Nov-14 8:39 
AnswerRe: PocketSphinx Pin
BillWoodruff21-Nov-14 9:31
professionalBillWoodruff21-Nov-14 9:31 
Questionhow to solve System.OutOf Memory Exception was thrown Pin
cicill21-Nov-14 5:24
cicill21-Nov-14 5:24 
AnswerRe: how to solve System.OutOf Memory Exception was thrown Pin
Eddy Vluggen21-Nov-14 5:35
professionalEddy Vluggen21-Nov-14 5:35 
AnswerRe: how to solve System.OutOf Memory Exception was thrown Pin
OriginalGriff21-Nov-14 5:50
mveOriginalGriff21-Nov-14 5:50 
AnswerRe: how to solve System.OutOf Memory Exception was thrown Pin
hassan faghihi21-Nov-14 22:27
professionalhassan faghihi21-Nov-14 22:27 
QuestionApplication has stopped working error in C# .NET application Pin
eljainc21-Nov-14 4:51
eljainc21-Nov-14 4:51 
AnswerRe: Application has stopped working error in C# .NET application Pin
OriginalGriff21-Nov-14 5:10
mveOriginalGriff21-Nov-14 5:10 
AnswerRe: Application has stopped working error in C# .NET application Pin
Redgum21-Nov-14 5:11
professionalRedgum21-Nov-14 5:11 
AnswerRe: Application has stopped working error in C# .NET application Pin
Richard MacCutchan21-Nov-14 5:12
mveRichard MacCutchan21-Nov-14 5:12 

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.