AnnDataPath example for Delphi
Note: |
This topic is for Document/Medical only. |
This example shows how to load an annotation file from the Internet.
var
//Global declarations
RasterAnn: LEADRasterAnnotation;
RasterAnnToolbar: LEADRasterAnnToolBar;
procedure TForm1.Button1Click(Sender: TObject);
begin
RasterAnn:= CoLEADRasterAnnotation.Create ();
RasterAnnToolbar:= CoLEADRasterAnnToolBar.Create ();
RasterAnn.AnnParentRasterView := LEADRasterView1.Raster;
LEADEventSink1.Connect (RasterAnn, _LEADRasterAnnotationEvents);
RasterAnn.AnnUserMode:= ANN_USERMODE_RUN;
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
RasterAnn.AnnDataPath (WideString('http://www.leadtools.com/images/test.ann'));
end;