Loading...

TIFF + transperant = problem

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

TIFF + transperant = problem

Postby GoLiveUk » Thu Nov 26, 2009 10:16 am

Hello,
I have a TIFF file with a transperant area. I tried to place an image under the trensparent area, but for some reason it appears in white colour.
How did I do that:
1. I created 3 TImaging
2. I loaded with Imaging1.ICCAddFromFile() the tiff file in Imaging1
3. I loaded with Imaging2.ICCAddFromFile() the jpeg file in Imaging2
4. I created a new image in Imaging3 with Imaging3.CreateNewImage(Imaging1.GetWidth,Imaging1.GetHeight,64,Imaging3.argb(255,255,255,255));
5. I used DrawImage() to insert Imaging2 and Imaging1 in Imaging3:
Imaging3.DrawImage(Imaging2.GetNativeImage,100,400,Imaging2.GetWidth,Imaging2.GetHeight,7);
Imaging3.DrawImage(Imaging1.GetNativeImage,0,0,Imaging1.GetWidth,Imaging1.GetHeight,7);
I have also tried a PSD, but that did not work either.
The aforementioned problem does not occur though if using PNG or GIF files.

I use DELPHI 2009 with trial version of "GdPicture Pro Imaging SDK Ver. 5.12.3 (21 October 2009)"
GoLiveUk
 
Posts: 2
Joined: Thu Nov 26, 2009 10:10 am

Re: TIFF + transperant = problem

Postby Loïc » Sun Nov 29, 2009 6:38 pm

Hi,

Please upload a demo application & your tiff files for investigation.

With best regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4437
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: TIFF + transperant = problem

Postby GoLiveUk » Tue Dec 01, 2009 12:59 pm

The original Tiff file cannot be uploaded due to copy rights.A new file has been created to for the purposes of that website.
The problem that occurs in the original one, appears in this one as well. Along with the Image Files which I am using I am
attaching and the source code with the methodology that I am applying included.
Before someone suggest that I should add transparency to the white color, I would like to say that the original
Tiff file contains white color in other places too, not only where I need the transparency to be, so that is not a solution to the issue.
Attachments
example.zip
source code and images
(577.8 KiB) Downloaded 43 times
GoLiveUk
 
Posts: 2
Joined: Thu Nov 26, 2009 10:10 am


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: Bing [Bot] and 1 guest