PictureEffectsRaw Xojo Plugin |
|
ScaleEffectRaw.BilinearScale Method (console safe)
To do high quality scaling on images use the BilinearScale function.
BilinearScale(
source as RawBitmap,
dstWidth as Integer,
dstHeight as Integer) as RawBitmap
Parameters
- source
- The source RawBitmap to work with. This can be any valid RawBitmap instance with 1, 2, 3 or 4 channels.
- dstWidth
- The width of the destination RawBitmap. If this is less than one then a nil will be returned.
- dstHeight
- The height of the destination RawBitmap. If this is less than one then a nil will be returned.
Returns
- RawBitmap
- If the filter was successful: A reference to the modified RawBitmpa.
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
ScaleEffectRaw Class