JCL Help:Stretch@Cardinal@Cardinal@TResamplingFilter@Single@TGraphic@TBitmap

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Scales a graphic to a bitmap.


Pascal

 procedure Stretch(NewWidth: Cardinal; NewHeight: Cardinal; Filter: TResamplingFilter; Radius: Single; Source: TGraphic; Target: TBitmap); overload;
procedure Stretch(NewWidth: Cardinal; NewHeight: Cardinal; Filter: TResamplingFilter; Radius: Single; Bitmap: TBitmap); overload;


Parameters

Parameters Description
NewWidth: Cardinal The new width of the target bitmap.
NewHeight: Cardinal The new height of the target bitmap.
Filter: TResamplingFilter The filter to be used.
Radius: Single The radius in pixels that will influence the current pixel. This can be a fractional to use partial pixels.
Source: TGraphic The source graphic.
Target: TBitmap The target bitmap.
Bitmap: TBitmap The bitmap to scale.


Description

Scales the source graphic to the given size (NewWidth, NewHeight) and stores the Result in Target. Filter describes the filter function to be applied and Radius the size of the filter area. If Radius = 0 then the recommended filter area will be used (see DefaultFilterRadius). With the filters you can determine the quality and the speed of the conversion, use a Box or Triangle filter for fast previews and a Lanczos3 or Bell filter for better quality.


See Also

TResamplingFilter


About

Unit

JclGraphics


Donator

Mike Lischke


Contributors

Robert Rossmair


Platforms

VCL VisualCLX


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