ShowEmbossDlg Example for Visual Basic
Dim RasterImgEfxDlg As New LEADRasterDlgImgEfx
Dim RasterProc As New LEADRasterProcess
Dim nRet As Integer
Private Sub Emboss_Click()
RasterImgEfxDlg.Direction= EMBOSS_S
RasterImgEfxDlg.UIFlags = EMBOSS_SHOW_PREVIEW Or _
EMBOSS_SHOW_TOOL_ZOOMLEVEL
RasterImgEfxDlg.Bitmap = LEADRasterView1.Raster.Bitmap
nRet = RasterImgEfxDlg.ShowEmbossDlg(hWnd)
If (nRet = 0 And RasterImgEfxDlg.DialogStatus = DLG_OK) Then
RasterProc.Emboss LEADRasterView1.Raster, RasterImgEfxDlg.Direction, _
RasterImgEfxDlg.Depth
End If
End Sub