PictureEffects Xojo Plugin |

# ScaleEffect.BilinearScale Method

To do high quality scaling on images use the BilinearScale function.

BilinearScale(
source as Picture,
dstWidth as Integer,
dstHeight as Integer) as Picture

#### Parameters

source
  The source picture to work with. This picture has to be 24 or 32 bits per pixel.
dstWidth
  The width of the destination picture. If this is less than one then a nil will be returned.
dstHeight
  The height of the destination picture. If this is less than one then a nil will be returned.

#### Returns

Picture
  If the filter was successful: A reference to the modified picture.
  If nil was returned then see the ErrorCode property to get hints for cause of the error.

#### Remarks

When both axis are getting scaled down then this function changes from using Bilinear Scaling to another algorithm that gives better quality when scaling down.

#### See Also

ScaleEffect Class