Skip to main content
gamedev.net
🔒 Locked

in basic code how can i control sharpness,contrast,brightness,etc.

Started by archangle Oct 11, 2003 at 3:05 AM 4 replies 500+ views
Original Post
archangle
archangle
thanks for any help
Ilici
Ilici
there is a function in the windows API to change the gamma ramp -SetGammaRamp - you''ll have to setup your own ramp and pass it to this func.



[ My Site ]
''I wish life was not so short,'' he thought. ''Languages take such a time, and so do all the things one wants to know about.'' - J.R.R Tolkien
/*ilici*/
Nik02
Nik02
Contrast and brightness as well as color balance can be controlled by a gamma ramp.

However, sharpening and softening require convolution filters, which sample multiple source pixels to get the result pixel.

Search for "image filtering algorithms" in google (or similar) for more info.

And, i managed to find a relevant link for you!
HIPR Image Processing

I hope this helps.

-Nik
Niko Suni
C0D1F1ED
C0D1F1ED
Don''t forget to restore gamma when your application exits!

I''m sick of games where I have to manually restore gamma after playing...
archangle
archangle
HOW CAN I ALTER GAMMA and or
BRIGHTNESS
CONRAST
SHARPNESS
IN BLITZ3D?
Nik02
Nik02
quote:
Original post by archangle
HOW CAN I ALTER GAMMA and or
BRIGHTNESS
CONRAST
SHARPNESS
IN BLITZ3D?


Access the pixel data somehow (lock?), modify it according to desired effect formula (, and unlock it?). No need to YELL

(Accessing device memory is usually done by "locking", but i''m not familiar with Blitz3D terminology on this).

-Nik
Niko Suni

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.