Vcl.Direct2D.TDirect2DCanvas.StretchDraw
Delphi
procedure StretchDraw(const Rect: TRect; Graphic: TGraphic); overload; override;
procedure StretchDraw(const Rect: TRect; Graphic: TGraphic; Opacity: Byte); reintroduce; overload;
C++
virtual void __fastcall StretchDraw(const System::Types::TRect &Rect, Vcl::Graphics::TGraphic* Graphic)/* overload */;
HIDESBASE void __fastcall StretchDraw(const System::Types::TRect &Rect, Vcl::Graphics::TGraphic* Graphic, System::Byte Opacity)/* overload */;
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Direct2D.pas Vcl.Direct2D.hpp |
Vcl.Direct2D | TDirect2DCanvas |
Description
Dessine le graphique spécifié par le paramètre Graphic dans le rectangle spécifié par le paramètre Rect.
Appelez StretchDraw pour dessiner un graphique dans le canevas de telle manière que l'image tienne dans le rectangle spécifié. StretchDraw appelle la méthode Draw du graphique. C'est l'objet graphique qui détermine comment tenir dans le rectangle. Cela peut nécessiter de modifier l'agrandissement et/ou les proportions.
Pour restituer le graphique avec sa taille naturelle, utilisez à la place la méthode Draw.