DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   Watched TopicsWatched Topics     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TTprintPreview and picture transparency

 
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> DELPHI AREA's Products
View previous topic :: View next topic  
Author Message
yannick
Member


Joined: 20 May 2006
Posts: 7

PostPosted: 20/05/06 14:34    Post subject: TTprintPreview and picture transparency Reply with quote

Hello,

I am using TPP and all works very fine.

I have only one problem :

i want to use a TImage with transparency,

But when i use the PaintGraphicEx Method, the transparency doen't work

what is the problem ?

Best regards
Back to top
View user's profile Send private message
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 1044
Location: Tehran, Iran

PostPosted: 20/05/06 16:28    Post subject: Reply with quote

I'm sorry, but that method doesn't support transparency.

You have to calculate the target rectangle of the image, and draw it using the Canvas.StretchDraw method.

_________________
Kambiz
Back to top
View user's profile Send private message Send e-mail Visit poster's website
yannick
Member


Joined: 20 May 2006
Posts: 7

PostPosted: 20/05/06 16:32    Post subject: Transparency Reply with quote

Thank you for your very fast response...

do you plan to implement this in future versions ?

thank you

Yannick
Back to top
View user's profile Send private message
yannick
Member


Joined: 20 May 2006
Posts: 7

PostPosted: 20/05/06 16:33    Post subject: Transparency Reply with quote

There is a PaintGraphicEx and PaintGraphicEx2 ....

so maybe a PaintGraphicEx3 in next versions ?
Back to top
View user's profile Send private message
yannick
Member


Joined: 20 May 2006
Posts: 7

PostPosted: 20/05/06 20:25    Post subject: StretchDraw Mehod Reply with quote

Hello

I have try your method ; the picture appear good for bmp with transparency, but in the print there is nothing.

If i put a gif with transprency into, it fill the transparency zone with black....

so it doesnt solve my problem.

Do you know why ?

Thank you
Back to top
View user's profile Send private message
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 1044
Location: Tehran, Iran

PostPosted: 20/05/06 22:55    Post subject: Reply with quote

Some printer drivers can print only DIB bitmaps.
_________________
Kambiz
Back to top
View user's profile Send private message Send e-mail Visit poster's website
yannick
Member


Joined: 20 May 2006
Posts: 7

PostPosted: 21/05/06 00:11    Post subject: DIB Bitmap Reply with quote

So what is the solution to print a picture with transparency ?

i am not a specialist like you in this domain, i am not use to manipulate bitmap and all sort of draw methods,


so , do you plan to add this in your component ? i think it will be very usefull for including picture like logos on a grayscaled background....

or can you give me few lines to do it ?

thank you !

yannick
Back to top
View user's profile Send private message
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 1044
Location: Tehran, Iran

PostPosted: 21/05/06 11:54    Post subject: Reply with quote

Currently I'm too busy with my other stuffs. But for sure I'll remove this limitation in the next release.
_________________
Kambiz
Back to top
View user's profile Send private message Send e-mail Visit poster's website
yannick
Member


Joined: 20 May 2006
Posts: 7

PostPosted: 21/05/06 14:52    Post subject: Transparency Reply with quote

thank you very much !!!!
Back to top
View user's profile Send private message
yannick
Member


Joined: 20 May 2006
Posts: 7

PostPosted: 11/09/06 21:50    Post subject: Transparency on TPrintPreview Reply with quote

Hello Kambiz

when will you take care of transparents picture in your component ?

best regards

Yannick
Back to top
View user's profile Send private message
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 1044
Location: Tehran, Iran

PostPosted: 11/09/06 22:35    Post subject: Reply with quote

Yannick,

I really don't know. It's a long time that I couldn't find time to spend on my hobbies. Sad

_________________
Kambiz
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    DELPHI AREA Forum Index -> DELPHI AREA's Products All times are GMT
Page 1 of 1

Add to favorites

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group