Click or drag to resize

ImageCompositePrintDocumentAfterPrintImage Event

Occurs after a specific image is printed during the printing process.

Namespace:  Atalasoft.Imaging.WinControls
Assembly:  Atalasoft.dotImage.WinControls (in Atalasoft.dotImage.WinControls.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public event PrintCompositeEventHandler AfterPrintImage

Value

Type: Atalasoft.Imaging.WinControlsPrintCompositeEventHandler
Remarks
Use this event to dispose of images when they are no longer needed, or for any other cleanup required.
Examples
Dispose Image (C#)
private void imageCompositePrintDocument1_AfterPrintImage(object sender, Atalasoft.Imaging.WinControls.PrintCompositeEventArgs e) 
{ 
    if (e.Image != null) 
        e.Image.Dispose(); 
}
Dispose Image (Visual Basic)
Private  Sub imageCompositePrintDocument1_AfterPrintImage(ByVal sender As Object, ByVal e As Atalasoft.Imaging.WinControls.PrintCompositeEventArgs) Handles imageCompositePrintDocument1.AfterPrintImage
    If Not e.Image Is Nothing Then
        e.Image.Dispose()
    End If
End Sub
See Also