Click here to Skip to main content
15,887,875 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: convert to a string Pin
31-Jul-01 0:50
suss31-Jul-01 0:50 
GeneralDeleting all columns in ListCtrl ... Pin
Hadi Rezaee30-Jul-01 21:39
Hadi Rezaee30-Jul-01 21:39 
GeneralRe: Deleting all columns in ListCtrl ... Pin
30-Jul-01 22:43
suss30-Jul-01 22:43 
GeneralRe: Deleting all columns in ListCtrl ... Pin
Hadi Rezaee30-Jul-01 23:02
Hadi Rezaee30-Jul-01 23:02 
GeneralRe: Deleting all columns in ListCtrl ... Pin
31-Jul-01 4:49
suss31-Jul-01 4:49 
QuestionHow to Gradate colors with RGB? Pin
jin sok cho30-Jul-01 21:03
jin sok cho30-Jul-01 21:03 
AnswerRe: How to Gradate colors with RGB? Pin
Paolo Messina31-Jul-01 11:19
professionalPaolo Messina31-Jul-01 11:19 
AnswerRe: How to Gradate colors with RGB? Pin
Steve T1-Aug-01 11:29
Steve T1-Aug-01 11:29 
Hi,

I think you are approaching this problem from the wrong direction. You should not need to worry about smoothing out discrete bands of color if you are trying to represent continuously variable field strength. I think the easiest approach would be to simply generate the color of each pixel based on the field strengh at that point.

For example say you want to represent field strength with
green=weakest value and yellow=strongest value in an RGB24 image
all you need to do is set G=255 and B=0 and then scale R from 0 to 255 proportional to field strength at that pixel position.
In the simple case of a single field source use pythagorus to find each pixel's position relative to the pixel you designate as the source of the field then use whatever formula you need (probably some inverse square relationship) to calculate the field strength at that pixel poition and scale that position to your R value in the RGB image. ( You may want to do a preliminary pass of the field to find minimum and maximum values in the the area you are representing so you can scale to the full 0-255 value of the R value.
You should get a nice smooth image.

Steve T.

QuestionHow to print a list control in a dialog box? Pin
nulldreamer30-Jul-01 20:00
nulldreamer30-Jul-01 20:00 
GeneralSTL container of multiple types Pin
Todd Smith30-Jul-01 15:45
Todd Smith30-Jul-01 15:45 
GeneralRe: STL container of multiple types Pin
Christian Graus30-Jul-01 16:12
protectorChristian Graus30-Jul-01 16:12 
GeneralRe: STL container of multiple types Pin
Todd Smith30-Jul-01 19:22
Todd Smith30-Jul-01 19:22 
GeneralRe: STL container of multiple types Pin
Shankar Chandra Bose30-Jul-01 21:05
Shankar Chandra Bose30-Jul-01 21:05 
GeneralRe: STL container of multiple types Pin
Not Active31-Jul-01 3:34
mentorNot Active31-Jul-01 3:34 
GeneralRe: STL container of multiple types Pin
Philippe Mori31-Jul-01 4:25
Philippe Mori31-Jul-01 4:25 
GeneralRe: STL container of multiple types Pin
Todd Smith31-Jul-01 5:52
Todd Smith31-Jul-01 5:52 
QuestionHow can I move mouse cursor from my program? Pin
30-Jul-01 14:21
suss30-Jul-01 14:21 
AnswerRe: How can I move mouse cursor from my program? Pin
Carlos Antollini30-Jul-01 15:47
Carlos Antollini30-Jul-01 15:47 
GeneralDisabling Keys Pin
Orbitalne30-Jul-01 12:23
Orbitalne30-Jul-01 12:23 
GeneralRe: Disabling Keys Pin
Matt.W.30-Jul-01 15:47
Matt.W.30-Jul-01 15:47 
GeneralRe: Disabling Keys Pin
31-Jul-01 4:52
suss31-Jul-01 4:52 
Generalpalmap32.dll <-pretty impossible !?! Pin
30-Jul-01 11:42
suss30-Jul-01 11:42 
GeneralSynchronizing a global function Pin
PJ Arends30-Jul-01 11:37
professionalPJ Arends30-Jul-01 11:37 
GeneralRe: Synchronizing a global function Pin
Tomasz Sowinski30-Jul-01 11:42
Tomasz Sowinski30-Jul-01 11:42 
GeneralRe: Synchronizing a global function Pin
PJ Arends30-Jul-01 11:44
professionalPJ Arends30-Jul-01 11:44 

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.