![]() |
Grafik im Speicher erstellen für BlobStream (DB)
Hallo,
Welches Control würde man wohl am ehesten nutzen, um eine Zufallsgrafik im Speicher zu erstellen, welche als Stream für ein Datenbankfeld durchgereicht werden soll? Zufallsgrafik heißt für mich, dass ich einfach auf ein 50x50 großes Bitmap ein paar Punkte oder Text zeichnen möchte. LG Mathias |
AW: Grafik im Speicher erstellen für BlobStream (DB)
Zitat:
|
AW: Grafik im Speicher erstellen für BlobStream (DB)
Das eigenartige ist, mein Delphi erkennt TBitMap nicht mehr.
Fehlt mir eine unit? LG Mathias |
AW: Grafik im Speicher erstellen für BlobStream (DB)
Zitat:
![]() ![]() (ein klick auf einen link führt dich direkt zur TBitmap Referenz) Nachwort: Wenn Du ein Control suchst, nutze ein TImage, das ist sichtbar. TBitmap ist kein Control, es ist ein Objekt.
Delphi-Quellcode:
var
bmp: TBitmap; begin bmp := TBitmap.Create usw usf |
AW: Grafik im Speicher erstellen für BlobStream (DB)
Danke, hat nix gebracht.
Ich habe als unit noch Vcl.Imaging.GIFImg, Vcl.Imaging.jpeg, Vcl.Imaging.pngimage drin. Hakt sich da was mit TBitMap? LG |
AW: Grafik im Speicher erstellen für BlobStream (DB)
Zitat:
LG |
AW: Grafik im Speicher erstellen für BlobStream (DB)
Hab Antwort geupdated, hilft das?
|
AW: Grafik im Speicher erstellen für BlobStream (DB)
Dann halt mit vollem Namen. Das muss funktionieren.
Delphi-Quellcode:
procedure TForm9.FormCreate(Sender: TObject);
var bmp: Vcl.Graphics.TBitmap; begin bmp := Vcl.Graphics.TBitmap.Create; try bmp.Width := 50; bmp.Height := 50; // mach was mit dem objekt finally bmp.Free end; end; |
AW: Grafik im Speicher erstellen für BlobStream (DB)
Jetzt habe ich auch eine aussagekräftige Fehlermeldung:
[dcc32 Fehler] Unit_Hauptformular.pas(1390): E2010 Inkompatible Typen: 'tagBITMAP' und 'TBitmap' var Dummy_Image: TBitmap; begin Dummy_Image := Vcl.Graphics.TBitmap.Create; Was ist bitte tagBITMAP? LG Edit: ![]() |
AW: Grafik im Speicher erstellen für BlobStream (DB)
Nutze auch im var den vollen namen.
tagBITMAP ist in Windows definiert. da beißt sich was. also es gibt auch winapi.windows.tbitmap <<< deswegen |
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:28 Uhr. |
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 by Thomas Breitkreuz