This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, July 5, 2005 1:59:45 PM(UTC)
Groups: Registered
Posts: 1
I was wondering if anyone can help me take a PNG or a PSD image that contains a transparency that has variable opacity and use it as a border in LEAD Tools. I have LEAD Tools version 13.0 Pro. I have tried using the transparency color examples but it does not show the gradation of the transparency. The background has variable opacity which lets some or all of the main image show through. Does anyone know how to make that work in LEAD Tools? Thanks.
#2
Posted
:
Sunday, July 10, 2005 10:24:41 PM(UTC)
Groups: Registered, Tech Support
Posts: 20
Many applications interpret alpha channels in PNG files and other formats as transparency masks.
In LEADTOOLS, the alpha channel does not automatically mean transparency, unless the programmer uses it as such in his own code. If you want to use it for transparency, you can do it using 2 controls. The following Visual Basic OCX code does this with a white background. However, it could be any image in the second control LEAD2, not just plain white:
LEAD1.Load "imageWithAlpha.png", 32, 1, 1
LEAD2.CreateBitmap LEAD1.BitmapWidth, LEAD1.BitmapHeight, 32
LEAD2.Fill RGB(255, 255, 255) ' background color
LEAD2.FeatherAlphaBlend 0, 0, LEAD1.BitmapWidth, LEAD2.BitmapHeight, LEAD1.Bitmap, 0, 0, LEAD1.BitmapAlpha
Note that the FeatherAlphaBlend function only works in LEADTOOLS 13 Digital paint or LEADTOOLS 14 Raster Imaging Pro.
Amin Dodin
LEADTOOLS Technical Support
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.