TPictureGraphic (C++)
Description
The following code draws the graphic in Image1 in the upper-left corner of PaintBox1. Place a TPaintBox on the form and a TImage on the form that contains a picture.
Code
void __fastcall TForm1::Button1Click(TObject *Sender)
{
PaintBox1->Canvas->Draw(0,0, Image1->Picture->Graphic);
}
Uses
- Vcl.ExtCtrls.TImage.Picture ( fr | de | ja )
- Vcl.Graphics.TPicture.Graphic ( fr | de | ja )
- Vcl.Controls.TGraphicControl.Canvas ( fr | de | ja )
- Vcl.Graphics.TCanvas.Draw ( fr | de | ja )