Vcl.Direct2D.TDirect2DCanvas.StretchDraw

From RAD Studio API Documentation
Jump to: navigation, search

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 */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Direct2D.pas
Vcl.Direct2D.hpp
Vcl.Direct2D TDirect2DCanvas

Description

Draws the graphic specified by the Graphic parameter in the rectangle specified by the Rect parameter.

Call StretchDraw to draw a graphic on the canvas so that the image fits in the specified rectangle. StretchDraw calls the Draw method of the graphic. The graphic object determines how to fit into the rectangle. This may involve changing magnification and/or aspect ratio.

To render the graphic in its natural size, use the Draw method instead.

See Also