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 >>

TAdvOfficeImage
How to autosize the component after loading a PNG file with AdvOfficeImage.Picture.LoadFromFile

Please use code similar to:
begin
  AdvOfficeImage1.Picture.LoadFromFile('c:\temp\weather.png');
  AdvOfficeImage1.Width := AdvOfficeImage1.Picture.Width;
  AdvOfficeImage1.Height := AdvOfficeImage1.Picture.Height;
end;