Board index » delphi » SetDeviceGammaRamp
Nic Roche
![]() Delphi Developer |
Nic Roche
![]() Delphi Developer |
SetDeviceGammaRamp2003-08-18 11:07:33 AM delphi35 Hi, I'm using SetDeviceGammaRamp to alter Gamma/Brightness/Contrast of the DesktopDC. Can anyone point me in the right direction with splitting the RGB and only altering one chanel at a time as in Gamma Panel at www.stars.benchmark.pl/ Regards Nic Roche Encore Software |
Nic Roche
![]() Delphi Developer |
2003-08-18 10:55:10 PM
Re:SetDeviceGammaRampQuotemodify the values as required. The RGB is (for general gamma) is something like: W := Byte(Round(V * 255.0)) Shl 8; R.R[I ] := W; R.G[I ] := W; R.B[I ] := W; To modify just one chanel, how do I modify these values? Quote"Ignacio Vazquez" <ivazquezATorioncommunications.com>writes |
Ignacio Vazquez
![]() Delphi Developer |
2003-08-18 11:12:29 PM
Re:SetDeviceGammaRamp
"Nic Roche" <XXXX@XXXXX.COM>writes
XXXX@XXXXX.COM... QuoteThe RGB is (for general gamma) is something like: Ignacio |
Nic Roche
![]() Delphi Developer |
2003-08-18 11:19:26 PM
Re:SetDeviceGammaRamp
I settled on non-channel ramps...
I am having problems altering the fullscreen media player gamma values. Is this do-able? If so the GetDC( TActiveMovie1.handle ) is not giving me the DC I need. Which DC (if any) do I use for this? tnx "Ignacio Vazquez" <ivazquezATorioncommunications.com>writes Quote"Nic Roche" <XXXX@XXXXX.COM>writes |
Maynard Philbrook
![]() Delphi Developer |
2003-08-19 02:27:27 AM
Re:SetDeviceGammaRamp
That API call does not work with all systems and video cards.
Nic Roche writes: QuoteHi, |