Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi StretchDraw mit srcRect? (https://www.delphipraxis.net/122302-stretchdraw-mit-srcrect.html)

m.r.m. 13. Okt 2008 16:03


StretchDraw mit srcRect?
 
Hallo,

um ein Bild auf ein TCanvas zu zeichnen verwende ich StretchDraw.
Gibt es eine Möglichkeit nicht nur den Bereich wo hingezeichnet wird anzugeben, sondern auch den Bereich des TGraphic welcher gezeichnet werden soll?
Also z.B. sowas:
StretchDraw(const SrcRect, DstRect: TRect; Graphic: TGraphic);

jfheins 13. Okt 2008 16:07

Re: StretchDraw mit srcRect?
 
Bei MSDN-Library durchsuchenStretchBlt geht das (ist evtl. sogar schneller weil StretchDraw diese Funktion wrappt ...)

Zitat:

hdcDest
[in] Handle to the destination device context.

nXOriginDest
[in] Specifies the x-coordinate, in logical units, of the upper-left corner of the destination rectangle.

nYOriginDest
[in] Specifies the y-coordinate, in logical units, of the upper-left corner of the destination rectangle.

nWidthDest
[in] Specifies the width, in logical units, of the destination rectangle.

nHeightDest
[in] Specifies the height, in logical units, of the destination rectangle.

hdcSrc
[in] Handle to the source device context.

nXOriginSrc
[in] Specifies the x-coordinate, in logical units, of the upper-left corner of the source rectangle.

nYOriginSrc
[in] Specifies the y-coordinate, in logical units, of the upper-left corner of the source rectangle.

nWidthSrc
[in] Specifies the width, in logical units, of the source rectangle.

nHeightSrc
[in] Specifies the height, in logical units, of the source rectangle.


dwRop

m.r.m. 13. Okt 2008 16:12

Re: StretchDraw mit srcRect?
 
Mit StretchBlt geht bei mir die Transparenz verloren.
Wie kann man das mit Transparenz machen?


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:06 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz