This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, August 9, 2010 7:22:20 AM(UTC)
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
#2
Posted
:
Tuesday, August 10, 2010 5:38:16 AM(UTC)
Groups: Guests
Posts: 3,022
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)
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)
Groups: Guests
Posts: 3,022
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)
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.