ShowPunchDlg Example for Visual Basic
Dim RasterImgEfxDlg As New LEADRasterDlgImgEfx
Dim RasterProc As New LEADRasterProcess
Dim nRet As Integer
Private Sub Punch_Click()
RasterImgEfxDlg.UIFlags = PUNCH_SHOW_PREVIEW Or _
PUNCH_SHOW_TOOL_ZOOMLEVEL
RasterImgEfxDlg.Bitmap = LEADRasterView1.Raster.Bitmap
nRet = RasterImgEfxDlg.ShowPunchDlg(hWnd)
If (nRet = 0 And RasterImgEfxDlg.DialogStatus = DLG_OK) Then
RasterProc.Punch LEADRasterView1.Raster, RasterImgEfxDlg.Value, _
RasterImgEfxDlg.Stress, _
RasterImgEfxDlg.CenterX, _
RasterImgEfxDlg.CenterY, _
RasterImgEfxDlg.FillColor, _
RasterImgEfxDlg.ImageEffectFlags
End If
End Sub