Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TMS Advanced Poly List
Adding pictures to the TGDIPPictureContainer at runtime

Below is a code snippet that shows how an image is loaded from file and added to the TGDIPPictureContainer:
with GDIPPictureContainer.Items.Add do
begin
  Picture.LoadFromFile('myimage.png’);
  Name := 'NEW';
end;
To remove a picture from the TGDIPPictureContainer later:
with GDIPPictureContainer.Items.Items[0].Free;
This is also explained at page 68 of the PDF Developers Guide.