I'm not sure, but i think you can't control the way to stretch.
You can control the way to merge with pre-existent image,
by TCanvas.CopyMode.

Maybe you can do what you want by using Graphics32 libray
[i knew about it some days ago, but i saw it's very popular].
There are many way to interpolate for stretching [TBitmap32.StretchFilter].
http://graphics32.org/wiki7


----- Original Message ----- 
From: "quickjoe2005" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, April 16, 2005 3:12 PM
Subject: [delphi-en] Re: Draw transparent image


> 
> 
> 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
> 
> 
> 
>  
> 
> 
> 
> 


-----------------------------------------------------
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