If you try the exact same code and only modify the file loading path, do you still get the problem?
Also, I noticed that your code contains 10 parameters but I can only find one overload that has 9 parameters. Did you update the DLLs, Libs and header files with the new ones from the patch I sent you instructions to download?
You also can try using L_FeatherAlphaBlendBitmap() which will give you the same results. The following code shows you how:
=======================================
L_INT nRet=0;
BITMAPHANDLE LeadBitmap={0};
BITMAPHANDLE AlphaBitmap={0};
BITMAPHANDLE BackgroundBmp = {0};
FILEINFO info={0};
nRet=L_FileInfo(TEXT("D:\\test\\OLEE12E.png"),&info,sizeof(FILEINFO),FILEINFO_TOTALPAGES,NULL);
nRet=L_LoadBitmap (TEXT("D:\\test\\OLEE12E.png"), &LeadBitmap, sizeof(BITMAPHANDLE),0, ORDER_BGR, NULL, NULL);
nRet=L_GetBitmapAlpha(&LeadBitmap,&AlphaBitmap,sizeof(BITMAPHANDLE));
L_CopyBitmap(&BackgroundBmp, &LeadBitmap, sizeof(BITMAPHANDLE));
L_FillBitmap(&BackgroundBmp, RGB(0, 0, 0));
L_FeatherAlphaBlendBitmap(&LeadBitmap,0,0,BITMAPWIDTH(&LeadBitmap), BITMAPHEIGHT(&LeadBitmap),&BackgroundBmp,0,0,&AlphaBitmap);
nRet=L_SaveBitmap(TEXT("D:\\test\\FEATHER_RESULT.png"),&LeadBitmap,FILE_PNG,32,0,NULL);
=======================================
Attached are the result images I got for both L_AlphaBlendBitmap() and L_FeatherAlphaBlendBitmap() calls.
Please ntoe that L_FeatherAlphaBlendBitmap() also takes 9 parameters.
If you still face problems, please provide me with the following:
1) A small sample project (NOT your full application) that shows the issue and put it inside ZIP or RAR file.
2) The exact steps I need to take to reproduce the issue at my end.
3) What is the Windows version (XP, Vista, 7..etc) that you are seeing the issue on?
4) Which visual studio are you using (2008,2010..etc)?
NOTE: Put all attachments inside ZIP or RAR file and do NOT use "Preview" option.