Image Viewer CP Pro ActiveX Control ReferenceMethods ClearDrawImageByIndex Image Viewer CP ActiveX Control ClearDrawImageByIndex Clear specific index of DrawImage. Public Function ClearDrawImageByIndex( _ ByVal iIndex As Integer)As Bool Parameter iIndexthe first index is 0. Return ValueTrue - Delete successfulFALSE - FailedExample Visual Basic SyntaxiCount = ImageViewer1.GetCountDrawImageImageViewer1.ClearDrawImageByIndex iCount-1 'delete last item