AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Multimedia Delphi StretchDraw mit srcRect?
Thema durchsuchen
Ansicht
Themen-Optionen

StretchDraw mit srcRect?

Ein Thema von m.r.m. · begonnen am 13. Okt 2008 · letzter Beitrag vom 13. Okt 2008
Antwort Antwort
m.r.m.
(Gast)

n/a Beiträge
 
#1

StretchDraw mit srcRect?

  Alt 13. Okt 2008, 15:03
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);
  Mit Zitat antworten Zitat
Benutzerbild von jfheins
jfheins

Registriert seit: 10. Jun 2004
Ort: Garching (TUM)
4.579 Beiträge
 
#2

Re: StretchDraw mit srcRect?

  Alt 13. Okt 2008, 15:07
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
  Mit Zitat antworten Zitat
m.r.m.
(Gast)

n/a Beiträge
 
#3

Re: StretchDraw mit srcRect?

  Alt 13. Okt 2008, 15:12
Mit StretchBlt geht bei mir die Transparenz verloren.
Wie kann man das mit Transparenz machen?
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 23:37 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz