TPictureGraphic (C++)

From RAD Studio Code Examples
Jump to: navigation, search

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