I am trying to apply an watermark from a transparent image to an JPG , here is the code, its not working, please help
Dim RasterProc As New LEADRasterProcess
Dim RasterIO As New LEADRasterIO
Dim raster1 As New LEADRaster
Dim raster2 As New LEADRaster
Dim raster3 As New LEADRaster
'Watermark file
RasterIO.Load raster2, "c:\logo.png", 0, 0, 1
'Normal file
RasterIO.Load raster1, "c:\kk1.jpg", 0, 0, 1
raster2.Bitmap = raster2.BitmapAlpha
raster3.CreateBitmap raster2.BitmapWidth, raster2.BitmapHeight, 24
raster3.SetRgnRoundRect 0, 0, raster2.BitmapWidth, raster2.BitmapHeight, raster2.BitmapWidth, raster2.BitmapHeight, L_RGN_SET
RasterProc.CreateFadedMask raster2, raster3, 60, 20, 3, 0, FADE_DUMPFILL + FADE_NOTRANSPARENCY, 255, RGB(0, 0, 255)
RasterProc.FeatherAlphaBlend raster1, 0, 0, raster1.BitmapWidth, raster1.BitmapHeight, raster2, 0, 0, raster3
RasterIO.Save raster1, "c:\test.jpg", FILE_JPEG, raster1.BitmapBits, QFACTOR_ABCQ_ENHANCE, 0
Thanks
Kaarthic