# 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).