Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, July 5, 2005 1:59:45 PM(UTC)

kirk2  
kirk2

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.
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Sunday, July 10, 2005 10:24:41 PM(UTC)

support  
support

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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.061 seconds.