PictureEffectsRaw Xojo Plugin |
|
ScaleEffectRaw.StretchHorizontal Method (console safe)
Stretches a RawBitmap horizontally.
StretchHorizontal(
source as RawBitmap,
dstWidth 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.
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
If the RawBitmap is stretched so that it gets larger than the original then BilinearScale is internally called to get better quality. If the image is stretched so that it gets smaller then a high quality stretch down algorithm is used.
See Also
ScaleEffectRaw Class