JCL Help:StretchTransfer

From Project JEDI Wiki
Jump to navigationJump to search


Summary

The summary for this help topic does not exist, edit this page

Pascal

 procedure StretchTransfer(Dst: TJclBitmap32; DstRect: TRect; Src: TJclBitmap32; SrcRect: TRect; StretchFilter: TStretchFilter; CombineOp: TDrawMode);


Description

StretchTransfer is similar to StretchBlt or StretchDIBits functions from Windows GDI. This procedure performs copying and, if necessary, stretching of the bitmap fragment specified by SrcRect into location in Dst specified by DstRect.
StretchFilter defines a color interpolation method for image stretching.
sfNearest is the fastest fileter, although the quality of the stretched image is fair;
sfLinear is several times slower, but it produces more decent results in most cases;
sfSpline is an approximation of spline interpolation.
Unlike in BlockTransfer function, SrcRect must lie inside the Src bitmap boundaries, otherwise function will generate an exception. The result is not specified when transferring data inside the same bitmap (Src=Dst) and if in the same time SrcRect intersects with DstRect. In this case it is recommended to use a temporary bitmap buffer.
This routine is used in TJclBitmap32.Draw and TJclBitmap32.DrawTo methods.


See Also

BlockTransfer TJclBitmap32 TDrawMode TPixelCombineEvent TRect TStretchFilter


About

Unit

JclGraphics


Donator

Alex Denissov


Platforms

VCL


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page