Help Change Gamma
Blitz3D Forums/Blitz3D Programming/Help Change Gamma
| ||
Each time I have to learn something new, I think that's what I like to program, and as I read a book on c + +, and the only way to learn is to schedule, studying third code. Well, as I am a new me on this thank all those who in one way or another help me despite my great my language barrier. Anyway, I need to know how to implement a bar with an indicator to be handled by the mouse pointer change the gamma. This configuration is to put it in my project options. A greeting. |
| ||
As far as I remember, chanching Gamma on all 16 Million colors is rather slow, eg: For I=0 To 255 For j=0 To 255 For k=0 To 255 SetGamma i,j,k,255-i,255-j,255-k ; invert Next Next Next UpdateGamma() Someone correct me if I get this wrong, but isn't this the way to change Gamma for all Colors? Well the sample takes several seconds and may not be useful for a mouse control bar IMO. Last edited 2010 |
| ||
I'm pretty sure that's how it's done, jfk, yeah. To get around the slowness for a 'slider-bar' type control, it may be best suited to only apply the gamma change once an "Apply" button is clicked, rather than dynamically as the slider moves. Essentially, the format would be: (Of course, this is very basic) Last edited 2010 |
| ||
Thax :) Malice |