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 : Monday, August 9, 2010 7:22:20 AM(UTC)

Kiima  
Kiima

Groups: Registered
Posts: 25


Hi,
  How can I detect the gif background/transparency color, so that when I save the image as a 1 bit group 4 tif, it doesn't show up as a single black box. Image examples attached.


-Kiima
LeadTools 16.5
WinForms VB6 COM
File Attachment(s):
Images.zip (2kb) downloaded 22 time(s).
 

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 : Tuesday, August 10, 2010 5:38:16 AM(UTC)

Adam Boulad  
Guest

Groups: Guests
Posts: 3,028

Was thanked: 2 time(s) in 2 post(s)

Kiima,
Are you using our .NET COMInterop methods? If yes, you can check the RasterImage.TransparentColor Property to get the transparent color used when painting the image. You can create a region of the non-transparent color and copy it to the background image.
If you need further assistance, please provide me with more details.
 
#3 Posted : Tuesday, August 10, 2010 11:32:12 AM(UTC)

Kiima  
Kiima

Groups: Registered
Posts: 25


Thanks! That pointed me in the right direction.

Here's the code I used to "remove" the transparent color.
If riConvertedImage.Transparent Then
        Dim color As RasterColor
        Set color = riConvertedImage.TransparentColor
        riConvertedImage.AddColorToRegion color, RasterRegionCombineMode_SetNot
End If

P.S. Yes, I'm using the .NET COMInterop methods
 
#4 Posted : Wednesday, August 11, 2010 12:15:30 AM(UTC)

Adam Boulad  
Guest

Groups: Guests
Posts: 3,028

Was thanked: 2 time(s) in 2 post(s)

Have you successfully removed the transparent color? If yes, do you need further assistance?
After setting the region of interest (non-transparent color) you can use the CombineCommand Class to copy the region to the background image.
 
#5 Posted : Wednesday, August 11, 2010 3:26:51 AM(UTC)

Kiima  
Kiima

Groups: Registered
Posts: 25


No further assistance needed. Thanks.
 
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-2020, Yet Another Forum.NET
This page was generated in 0.050 seconds.