Forum: Sonstige Fragen zu Delphi
Delphi
by turboPASCAL,
12. Dez 2008
Meines ist schon schneller, gelle. ;)
Forum: Sonstige Fragen zu Delphi
Delphi
by turboPASCAL,
12. Dez 2008
Och manno.... ;)
var
strBitmap: string;
function BitmapToString(InputBmp: TBitmap; var outString: String): BOOL;
var
ms: TMemoryStream;
begin
Result := FALSE;
Forum: Sonstige Fragen zu Delphi
Delphi
by turboPASCAL,
12. Dez 2008
Verflix, zu lahm.
Ich würde auch einfach die Streamvariante nehmen sie wird ja selbst vom TBitmap unterstützt. ( <Image>.Picture.Bitmap.SaveToStream )
Forum: Sonstige Fragen zu Delphi
Delphi
by turboPASCAL,
12. Dez 2008
Nochmal doof gefragt, Bitmap nach String oder andersrum ? :gruebel:
Forum: Sonstige Fragen zu Delphi
Delphi
by turboPASCAL,
12. Dez 2008
Du kannst das Bild, was ja wie du weisst aus Daten, also Bytes besteht in Chars oder besser in Hexadezimalwerte umwandels und somit als ein String übertragen.
ZB. mit IntToHex().
Das kommt nun auf die Bildgrösse und die Rechnergeschw. sowie die Datenübertragungsgeschw. an.
Wenn ein Bild in einen String umgewandelt werden zB. wie oben beschrieben mit IntToHex entseht eine doppelte...