Archived

This topic is now archived and is closed to further replies.

archangle

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

Recommended Posts

Ilici    862
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*/

Share this post


Link to post
Share on other sites
Nik02    4348
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

Share this post


Link to post
Share on other sites
C0D1F1ED    452
Don''t forget to restore gamma when your application exits!

I''m sick of games where I have to manually restore gamma after playing...

Share this post


Link to post
Share on other sites
Nik02    4348
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

Share this post


Link to post
Share on other sites