Image Viewer CP ActiveX Control

Delphi Developer Getting Started

Assuming that you have already run the Image Viewer CP ActiveX Control installation program and started Delphi, the next step is to install Image Viewer CP  ActiveX in Delphi. Select Component/Import ActiveX Control/ImageViewer CP ActiveX Control.


Select Control

Click on the Image Viewer CP ActiveX Control icon and draw it on the form. A rectangle should appear on the form.

Add Button in Form, add this line of code, which will load the image file.
procedure TForm1.Button1Click(Sender: TObject);
begin
imageviewer1.FileName :='c:\yourimage.jpg';
end;

end.