Autor Beitrag
mtin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 177

Win XP SP2
BDS2006 Enterprise
BeitragVerfasst: Mo 03.04.06 20:36 
tja, also mein Problem ist etwas kompliziert, aber ich hoffe mal man verstehts...ahja und es geht um den Bitmap-Spaß aus dem GR32-Paket!

ich hab eine Variable Frame vom typ TBitmap, die im hintergrund immer aktualisiert wird, also ständig andere Bilddaten enthält. Von diesem "Videobild" möchte ich jetzt eins rausgreifen, da dacht ich mir das mach ich folgendermaßen:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
var shot:TBitmap32;

procedure TForm1.Button1Click(Sender: TObject);
begin
shot:=TBitmap32.Create;
shot:=Frame;
shot.Changed;
end;
Das sollte nach meinem Verständnis jetzt EIN Standbild rausgegriffen haben, und das sollte jetzt auch da drin bleiben in der Variable Shot. Macht es aber nicht....wenn ich jetzt noch einen Button mache, welcher mir den Inhalt der Bitmap32 "Shot" in nem Image ausgibt, dann enthält diese immer das livebild...also jedes ma wenn ich auf ausgeben klicke ein anderes, obwohl ich ja eigentlich nur einmal etwas darin gespeichert habe...so als ob das shot:=Frame nur eine "Verknüpfung" zwischen den beiden hergestellt hat und shot jetzt einfach auf den Inhalt von Frame zeigt....hab ich mich halbwegs klar ausgedrückt?

egal...tja also dafür bräuchte ich Hilfe!!!
wenn ich das statt in "Shot" in einem Image32.Bitmap speicher dann klappts, aber ich wills ja im Hintergrund speichern...
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mo 03.04.06 21:33 
Schau Dir einmal die Methode TBitmap32.Assign an.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
mtin Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 177

Win XP SP2
BDS2006 Enterprise
BeitragVerfasst: Di 04.04.06 19:39 
danke, funktioniert perfekt :)