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 : Thursday, July 23, 2009 9:31:54 AM(UTC)

bclewis  
bclewis

Groups: Registered
Posts: 2


We extensively use PNG images with transparency (using alpha channel).  I've managed to successfully load and save these images using LEADTOOLS with the alpha information preserved; however, I can't figure out how to get the RasterImageViewer to display them correctly without modifying the image data.

Is there some way to inform the viewer that it should interpret the alpha channel as transparency data, in accordance with the PNG specification?

Thank you,
Ben
 

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 : Thursday, July 23, 2009 10:23:30 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 764


What is the file version of Leadtools.dll that you are using?

In 16.5, we added the ability for the RasterImageViewer to automatically do alpha channel painting.  To do this, you need to set the RasterPaintProperties.PaintEngine to RasterPaintEngine.GdiPlus.

If you're using 15 or older, you need to create a background image of the color you want for the background, then use the FeatherAlphaBlendCommand to paint the image with alpha transparency.
 
#3 Posted : Thursday, July 23, 2009 10:53:41 AM(UTC)

bclewis  
bclewis

Groups: Registered
Posts: 2


Great; the GdiPlus PaintEngine works like a charm.

Thank you,
Ben.
 
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.069 seconds.