Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Controls Assembly > Leadtools.Controls Namespace > ImageViewer Class : ProcessDropImage Method |
protected virtual void ProcessDropImage( ImageViewerItem targetItem, RasterImage image, bool isFloaterImage, LeadMatrix transform )
'Declaration
Protected Overridable Sub ProcessDropImage( _ ByVal targetItem As ImageViewerItem, _ ByVal image As RasterImage, _ ByVal isFloaterImage As Boolean, _ ByVal transform As LeadMatrix _ )
This method is called by the viewer as the final step when an image is dropped into an item. The following is the default implementation (to customize it, create a new class that derives from ImageViewer and override this method):
If targetItem is null, then the viewer will create a new ImageViewerItem, set image into ImageViewerItem.Image and adds the item to the viewer.
If targetItem is not null then the following is performed:
If the value of isFloaterImage is true and targetItem has a valid image, then image will be set into ImageViewerItem.Floater and transform into ImageViewerItem.FloaterTransform. In other words, the image will be added as a floater to the item.
If the value of isFloaterImage is false, the image will be set in ImageViewerItem.Image and transform is ignored. In other words, the image will replace the existing the image in the item (if any).