Click here to Skip to main content
15,923,376 members
Home / Discussions / Graphics
   

Graphics

 
QuestionPerspective image transform help required .??? Pin
SandipG 13-Jul-07 0:16
SandipG 13-Jul-07 0:16 
AnswerRe: Perspective image transform help required .??? Pin
El Corazon16-Jul-07 13:49
El Corazon16-Jul-07 13:49 
AnswerRe: Perspective image transform help required .??? Pin
Miss_ Petrovna19-Jul-07 5:17
Miss_ Petrovna19-Jul-07 5:17 
QuestionGDI, display buffers, ect. Pin
Delfistyaosani12-Jul-07 21:00
Delfistyaosani12-Jul-07 21:00 
AnswerRe: GDI, display buffers, ect. Pin
SHatchard13-Jul-07 0:52
SHatchard13-Jul-07 0:52 
GeneralRe: GDI, display buffers, ect. Pin
Delfistyaosani13-Jul-07 6:21
Delfistyaosani13-Jul-07 6:21 
Questionpage is not refreshing while accessing WS Pin
leoiser9-Jul-07 15:36
leoiser9-Jul-07 15:36 
QuestionColor managment Pin
Stevo Z9-Jul-07 7:12
Stevo Z9-Jul-07 7:12 
Hi, I'm creating a button, that has specified BG color. Color of it's text is calculated using simple algorithm from this BG color. For this purpose, I use HSL color scheme. algorithm of text color calculation is very simple :

Hue - same as background
Saturation - 0
Luminance - if background luminance exceeds 0.5f , set 0F, else 1f

otherwords - use white color if the bacground color is kind of dark, otherwise use black color.

And now my problem :

lets say we have a color like :

Hue = whatever
Saturation = 1f
Luminance = .5f

(that should be clearest mixture for any hue)

the problem is that some color values are very bright in this configuration and some are very dark:

pure blue (0.66 hue) - too dark
cyan (0.5f hue) - too bright

so sometimes the difference(for human eye) between specified background color and calculated text color is almost none (even when luminance difference is at least .5f)

can you help me out with any better way to calculate text color (I would like to keep it in gray scale)

thanx Smile | :)

I hope you'll understand my English Smile | :) ))
AnswerRe: Color managment Pin
IdUnknown10-Jul-07 6:09
IdUnknown10-Jul-07 6:09 
QuestionOpenGL directly on the desktop Pin
Ajko8-Jul-07 4:48
Ajko8-Jul-07 4:48 
AnswerRe: OpenGL directly on the desktop Pin
XTAL2569-Jul-07 2:02
XTAL2569-Jul-07 2:02 
QuestionOpen CAD drawing *.DWG without AutoCAD Pin
vivekbn6-Jul-07 5:58
vivekbn6-Jul-07 5:58 
AnswerRe: Open CAD drawing *.DWG without AutoCAD Pin
lost in transition 6-Jul-07 9:14
lost in transition 6-Jul-07 9:14 
AnswerRe: Open CAD drawing *.DWG without AutoCAD Pin
Drew Stainton17-Jul-07 19:47
Drew Stainton17-Jul-07 19:47 
QuestionCopy screen & render with OpenGL Pin
XTAL2566-Jul-07 3:05
XTAL2566-Jul-07 3:05 
AnswerAAAAAARGH!!! :( Pin
XTAL2569-Jul-07 2:21
XTAL2569-Jul-07 2:21 
GeneralRe: AAAAAARGH!!! :( Pin
Luc Pattyn9-Jul-07 4:05
sitebuilderLuc Pattyn9-Jul-07 4:05 
GeneralRe: AAAAAARGH!!! :( Pin
Christian Graus10-Jul-07 7:51
protectorChristian Graus10-Jul-07 7:51 
QuestionHow to change Hue of image??? Pin
SandipG 6-Jul-07 1:58
SandipG 6-Jul-07 1:58 
QuestionHighlighting a part of an Image Pin
Kavita Verma6-Jul-07 1:26
Kavita Verma6-Jul-07 1:26 
QuestionUnable to properly load PPM texture data Pin
Cyrilix3-Jul-07 15:39
Cyrilix3-Jul-07 15:39 
QuestionImage appears blurred some times?? Pin
SandipG 28-Jun-07 20:36
SandipG 28-Jun-07 20:36 
AnswerRe: Image appears blurred some times?? Pin
Christian Graus29-Jun-07 15:05
protectorChristian Graus29-Jun-07 15:05 
GeneralRe: Image appears blurred some times?? Pin
SandipG 1-Jul-07 18:55
SandipG 1-Jul-07 18:55 
QuestionAbout the GPU Gems 2 Pin
Tal Rasha's Guardianship27-Jun-07 17:17
Tal Rasha's Guardianship27-Jun-07 17:17 

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.