Vcl.Graphics.TBitmap.Create
Delphi
constructor Create; overload; override;
constructor Create(AWidth, AHeight: Integer); overload;
C++
__fastcall virtual TBitmap()/* overload */;
__fastcall TBitmap(int AWidth, int AHeight)/* overload */;
Inhaltsverzeichnis
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
constructor | public | Vcl.Graphics.pas Vcl.Graphics.hpp |
Vcl.Graphics | TBitmap |
Beschreibung
Instantiiert ein Bitmap-Objekt.
Mit Create wird ein Bitmap-Objekt zur Laufzeit instantiiert. Create wird außerdem automatisch aufgerufen, sobald ein Bitmap-Bild in ein TImage-Objekt geladen wird.
Create weist dem Bitmap-Objekt Speicher zu und ruft die geerbte Methode Create auf. Anschließend wird als internes Abbild des Bitmaps ein TBitmapImage-Objekt erzeugt.
Siehe auch
Codebeispiele
- FileSelectBtnEdit (Delphi)
- LoadFromResourceName (Delphi)
- FileSelectBtnEdit (C++)
- LoadFromResourceName (C++)