Click here to Skip to main content
15,914,074 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFloat/Double rounding off Pin
Imtiaz Murtaza4-Oct-04 19:35
Imtiaz Murtaza4-Oct-04 19:35 
GeneralRe: Float/Double rounding off Pin
mahade14-Oct-04 20:10
mahade14-Oct-04 20:10 
Generalplease C++ expert help me. Pin
Anonymous4-Oct-04 18:36
Anonymous4-Oct-04 18:36 
GeneralRe: please C++ expert help me. Pin
toxcct4-Oct-04 23:08
toxcct4-Oct-04 23:08 
GeneralRe: please C++ expert help me. Pin
Ravi Bhavnani5-Oct-04 2:36
professionalRavi Bhavnani5-Oct-04 2:36 
Generalplease C++ expert help me. Pin
Anonymous4-Oct-04 18:35
Anonymous4-Oct-04 18:35 
GeneralColor gradients question Pin
alex.barylski4-Oct-04 17:12
alex.barylski4-Oct-04 17:12 
GeneralRe: Color gradients question Pin
Ryan Binns4-Oct-04 18:09
Ryan Binns4-Oct-04 18:09 
Hockey wrote:
The gradient to the left...how is that generated???

Like this...

Assume:
x = 0 to Xmax (starting at left-hand side)
y = 0 to Ymax (starting at top side)
Rc = Red value of the top-right corner
Gc = Green value of the top-right corner
Bc = Blue value of the top-right corner

R(x,y) = (Rc + (255 - Rc) * (Xmax - x) / Xmax) * (Ymax - y) / Ymax
G(x,y) = (Gc + (255 - Gc) * (Xmax - x) / Xmax) * (Ymax - y) / Ymax
B(x,y) = (Bc + (255 - Bc) * (Xmax - x) / Xmax) * (Ymax - y) / Ymax


Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

GeneralRe: Color gradients question Pin
alex.barylski4-Oct-04 20:04
alex.barylski4-Oct-04 20:04 
Generalspell checker for microsoft word Pin
Lanre Ogunkola4-Oct-04 17:10
Lanre Ogunkola4-Oct-04 17:10 
GeneralRe: spell checker for microsoft word Pin
David Crow5-Oct-04 5:18
David Crow5-Oct-04 5:18 
GeneralRe: spell checker for microsoft word Pin
Lanre Ogunkola5-Oct-04 23:06
Lanre Ogunkola5-Oct-04 23:06 
GeneralServer / Client Pin
BoA20054-Oct-04 16:55
BoA20054-Oct-04 16:55 
GeneralRe: Server / Client Pin
ThatsAlok4-Oct-04 18:43
ThatsAlok4-Oct-04 18:43 
GeneralRe: Server / Client Pin
BoA20055-Oct-04 4:06
BoA20055-Oct-04 4:06 
GeneralRe: Server / Client Pin
ThatsAlok5-Oct-04 18:59
ThatsAlok5-Oct-04 18:59 
GeneralRe: Server / Client Pin
BoA20056-Oct-04 4:12
BoA20056-Oct-04 4:12 
GeneralDirectShow Pin
defused4-Oct-04 16:36
defused4-Oct-04 16:36 
Generalhelp needed....how to draw 3d surface plots in VC++ Pin
Kiran Satish4-Oct-04 10:58
Kiran Satish4-Oct-04 10:58 
Generalimages in different columns in a listctrl Pin
prateekkathuria4-Oct-04 10:13
prateekkathuria4-Oct-04 10:13 
GeneralRe: images in different columns in a listctrl Pin
Graham Bradshaw4-Oct-04 14:25
Graham Bradshaw4-Oct-04 14:25 
GeneralRe: images in different columns in a listctrl Pin
Anonymous4-Oct-04 14:31
Anonymous4-Oct-04 14:31 
GeneralRe: images in different columns in a listctrl Pin
Michael Dunn4-Oct-04 14:50
sitebuilderMichael Dunn4-Oct-04 14:50 
GeneralRoulette Pin
frostburn184-Oct-04 8:49
frostburn184-Oct-04 8:49 
GeneralRe: Roulette Pin
Christian Graus4-Oct-04 12:20
protectorChristian Graus4-Oct-04 12:20 

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.