Error processing SSI file
(Leadtools.Controls)

Show in webframe

InsertFromImage Method




0-based index of the item.
Source image.
1-based page number of rasterImage. Pass 1 if rasterImage contains a single page (frame).
Inserts a new item from a RasterImage objects.
Syntax
'Declaration
 
Public Function InsertFromImage( _
   ByVal index As Integer, _
   ByVal rasterImage As RasterImage, _
   ByVal pageNumber As Integer _
) As ImageViewerItem

Parameters

index
0-based index of the item.
rasterImage
Source image.
pageNumber
1-based page number of rasterImage. Pass 1 if rasterImage contains a single page (frame).

Return Value

The newly created item if successful.
Remarks

Use AddFromSvgDocument to insert an from an SVG document.

This method allows you to quickly insert an item from a RasterImage. It is the equivalent of the following code:


            ImageViewerItem item = new ImageViewerItem();
            item.Image = rasterImage;
            item.PageNumber = pageNumber;
            imageViewer.Items.Insert(index, item);
            

If rasterImage is null, then an empty item is added.

Requirements

Target Platforms

See Also

Reference

ImageViewerItems Class
ImageViewerItems Members

Error processing SSI file