Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Cross-Platform-Entwicklung (https://www.delphipraxis.net/91-cross-platform-entwicklung/)
-   -   Image.Bitmap erzeugen, Größe stimmt nicht! (https://www.delphipraxis.net/191945-image-bitmap-erzeugen-groesse-stimmt-nicht.html)

sko1 6. Mär 2017 12:29

Image.Bitmap erzeugen, Größe stimmt nicht!
 
Hallo,

ich versuche in ein TImage zu malen mit folgendem Code:

Delphi-Quellcode:
 image1.Bitmap:= TBitmap.Create;
 image1.Bitmap.Width:= trunc(image1.Width);
 image1.Bitmap.Height:= trunc(image1.Height);
  with image1.Bitmap.Canvas do
  begin
    BeginScene();
    clear(Talphacolors.Yellow);
    EndScene;
  end;
Dabei musste ich feststellen, dass das gelbe Viereck kleiner als das TImage ist, unter Windows vielleicht 80% der Größe, auf einem 1920*1080 Handy-Display ist das Bitmap nur ca. 1/3 der Image-Größe, was läuft hier schief?

Ciao
Stefan

Darlo 6. Mär 2017 12:33

AW: Image.Bitmap erzeugen, Größe stimmt nicht!
 
Ggf. die DPI berücksichtigen?

sko1 6. Mär 2017 12:43

AW: Image.Bitmap erzeugen, Größe stimmt nicht!
 
wie?

Rollo62 6. Mär 2017 20:12

AW: Image.Bitmap erzeugen, Größe stimmt nicht!
 
http://stackoverflow.com/questions/3...-in-delphi-xe8

http://www.fmxexpress.com/create-dev...droid-and-ios/

http://stackoverflow.com/questions/1...on-mobile-plat

sko1 7. Mär 2017 05:53

AW: Image.Bitmap erzeugen, Größe stimmt nicht!
 
Hervorragend, danke, funktioniert!

Ciao
Stefan


Alle Zeitangaben in WEZ +1. Es ist jetzt 15:57 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