PictureEffects Xojo and Real Studio Plugin |
|
ScaleEffect.StretchHorizontal Method
To stretch a picture horizontally.
StretchHorizontal(
source as Picture,
dstWidth 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 image.
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
If the picture 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
ScaleEffect Class