Forum: Sonstige Fragen zu Delphi
Delphi
by hboy,
3. Feb 2004
pixelformat setzen!
pic:=TBitmap.Create;
pic.PixelFormat:=form1.Image1.Picture.Bitmap.PixelFormat;
pic.Width:=form1.Image1.Picture.Bitmap.Width;
pic.Height:=form1.Image1.Picture.Bitmap.Height;
pic.Pixelformat := pf24bit;
Forum: Sonstige Fragen zu Delphi
Delphi
by hboy,
1. Feb 2004
achja wenn du nur
var
buffer: TBitmap;
hast und dann sagst buffer := Image1.Picture.Bitmap dann übergibst du nur deinen Zeiger auf das Bild. die Daten werden nicht dupliziert.
dazu musst du erst
buffer := TBitmap.Create;
buffer.pixelformat := image1.picture.bitmap.pixelformat;
buffer.width := image1.picture.bitmap.width;
Forum: Sonstige Fragen zu Delphi
Delphi
by hboy,
1. Feb 2004
du kannst bilder hin- und herkopieren mit
Bitmap.Canvas.CopyRect(const Dest: TRect; Canvas: TCanvas; const Source: TRect);
oder
BitBlt aus Windows, die eigentlich nur von deinem Canvas gewrappt wird
Delphi-Tags gesetzt. Mfg, Luckie