Autor Beitrag
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Do 20.02.03 08:28 
Moin,
ich will eine Image-komponente zur Laufzeit vergrößeren und zwar wenn das Formular vergrößert/verkleinert wird. Dazu setze ich eben Width und Heigth des Image. Das klappt bis dahin auch gut, aber wenn er es anzeigt, dann seh ich nur den Ausschnitt des alten Bereichs, das Image wurde aber in der vergrößerten Ansicht gespeichert....

*grübel*
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Do 20.02.03 08:35 
Hallo,

wenn mich nicht alles täuscht, musst Du das Bitmap/Bild in der Image ebenfalls mitvergrößern. Oder Du setzt die Eigenschaft Stretch auf True.

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: Do 20.02.03 08:37 
Hi
Hast du die Eigenschaft Stretch auf True gesetzt?

Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...
UGrohne Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Do 20.02.03 08:39 
Ich könnte ja höchstens Picture vergrößeren, aber das geht net "Einer Nur-Lesen-Eigenschaft kann nichts zugewiesen werden".
Und das mit dem Stretch hat auch nix gebracht :(
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: Do 20.02.03 08:45 
Hi
eigentlich sollte das mit dem Stretch schon hinhauen. Allerdings darf nicht gleichzeitig AutoSize auf True stehen.
Ansonsten könntest du mal probieren nach der Grössenänderung des Images nochmal Repaint auslösen. Aber an sich ist das unnötig.

Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...
UGrohne Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Do 20.02.03 08:50 
Ne, mit Repaint tut sich auch nichts :bawling:
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Do 20.02.03 15:16 
Hi,

wie schon gesagt wurde mußt du das Bitmap mit vergrößern! :)

ausblenden Quelltext
1:
2:
3:
4:
Image1.Width:=640;
Image1.Height:=480;
Image1.Picture.Bitmap.Width:=Image1.Width;
Image1.Picture.Bitmap.Height:=Image1.Height;

Au'revoir,
Aya

_________________
Aya
I aim for my endless dreams and I know they will come true!
UGrohne Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Do 20.02.03 20:56 
Danke, das funktioniert jetzt, habs nur mit Image1.Picture.Height probiert, dat geht ja nit.

Vielen Dank,

Gruß