Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi BitBlt (https://www.delphipraxis.net/22419-bitblt.html)

dizzy 4. Sep 2004 18:14

Re: BitBlt
 
Delphi-Quellcode:
  with TOpenDialog.Create(nil) do
  begin
    if Execute then
    begin
      Bitmap.LoadFromFile(Filename);
      Ebene1.Width := Bitmap.Width;
      Ebene1.Height := Bitmap.Height;
      Ebene1.Repaint;
      BitBlt(Ebene1.Canvas.Handle, 0, 0, Bitmap.Width, Bitmap.Height, Bitmap.Canvas.Handle , 0, 0, SRCCOPY);
    end;
    Free;
  end;
Mit Höhe/Breite vorher und einem Repaint (keine Ahnung warum genau, scheinbar wird erst im Repaint die neue Größe an das Canvas weiter gereicht, und es selber hat diese Properties garnicht) klappt das wunderbar.

Die Muhkuh 4. Sep 2004 18:18

Re: BitBlt
 
Thx,

jetzt gates!


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:36 Uhr.
Seite 2 von 2     12   

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-2025 by Thomas Breitkreuz