Site Tools


documentation:development:opera:pf25:ppgfldr:ggsfldr:gpgfldr:4gpgj

Controlling Pixel Interpolation


In its default state, the display generator practices full pixel interpolation for all 320-by-240 pixels it receives from a screen. If you'd like to turn off interpolation for that “crispy pixels” look within a screen, use these two calls:

int32 DisableHAVG( Item screenItem )

int32 DisableVAVG( Item screenItem )

The first call disables horizontal interpolation for the specified screen; the second call disables vertical interpolation for the specified screen. If either call is successful, it returns a zero. If unsuccessful, it returns a negative number (an error code).

To turn interpolation back on, use these two calls:

int32 EnableHAVG( Item screenItem )

int32 EnableVAVG( Item screenItem )

The first call enables horizontal interpolation for the specified screen; the second call enables vertical interpolation for the specified screen. If either call is successful, it returns a 0. If unsuccessful, it returns a negative number (an error code).

documentation/development/opera/pf25/ppgfldr/ggsfldr/gpgfldr/4gpgj.txt · Last modified: 2022/11/02 23:16 (external edit)