Hello,

I am sorry I didn't make myself clearer. I am 
trying to do something like this:

var
  R: TRect;
begin
  DstImg.Canvas.StretchDraw(R, SrcImg)
  ...
end;

SrcImg has a transparent color and R is chosen 
such that it is *not* the same as the dimensions 
of SrcImg. What seems to happen is that behind 
the scene, pixels are sampled and the colors 
(including the transparent color) are averaged 
such that the contours of the image seem 
"tainted" with the transparent color.

Note that when R equals the dimensions of the 
source image, there is no smudging effect.

Maybe it is not possible to get rid of this? 
Did I forget something?

Thanks anyway.

Eric

--- In [email protected], "Mauro Russo" <[EMAIL PROTECTED]> wrote:
> Check TImage.Transparent [<=> TImage.Picture.Bitmap.Transparent],
> TBitmap.TransparentColor
> TBitmap.TransparentMode.
> 
> Really, i didn't understand what do you mean
> by smudging the result.
> 
> ----- Original Message ----- 
> From: "quickjoe2005" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Saturday, April 16, 2005 10:21 AM
> Subject: [delphi-en] Re: Draw transparent image
> 
> 
> > 
> > 
> > Hello,
> > 
> > Does anyone know how to draw a transparent 
> > image on the canvas of another one after 
> > reducing its size without smudging the 
> > result with the transparent color?
> > 
> > Thanks
> > 
> > Eric L







-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to