andreas_gierisch
Erfahrenes Mitglied
moin, gibts ne möglichkeit eine in ner paintbox erstellte grafik zu speichern (in ne jpg datei oder so)?
Zuletzt bearbeitet:
Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
Graphics::TBitmap *Bitmap = new Graphics::TBitmap;
Bitmap->Bpp = 24;
Bitmap->Width = PaintBox->Width;
Bitmap->Height = PaintBox->Height;
for( int x = 0; x < PaintBox->Width; x++ )
{
for( y = 0; y < PaintBox->Height; y++ )
{
Bitmap->Canvas->Pixels[ x ][ y ] = PaintBox->Canvas->Pixels[ x ][ y ];
}
}
Bitmap->SaveToFile( "bild.bmp" );