Forum: Sonstige Fragen zu Delphi
Delphi
by himitsu,
2. Aug 2012
Dann ist auch ein "Bild" (eine Instanz eines Grafiktyps) in Graphic enthalten. :angle:
Man kann Bilder auf Papier, Pappe, Stoff, Holz oder Stein draufmalen.
Aber nur weil grade ein "Stein" in Graphic drin ist, muß da noch lange kein "Bild" draufgemalt sein.
Forum: Sonstige Fragen zu Delphi
Delphi
by himitsu,
2. Aug 2012
Nochmals:
property Bitmap: TBitmap read GetBitmap write SetBitmap;
property Graphic: TGraphic read FGraphic write SetGraphic;
procedure TPicture.ForceType(GraphicType: TGraphicClass);
begin
if not (Graphic is GraphicType) then
begin
FGraphic.Free;
Forum: Sonstige Fragen zu Delphi
Delphi
by himitsu,
2. Aug 2012
@freeway: Siehe Post #1 vorletzer Abschnitt.
Der Zugriff auf TPicture.Bitmap erstellt ein Bitmap, wenn nichts oder eine anderer Grafiktyp in TPicture.Graphic enthalten ist.
PS:
Nicht jedes Grafikformat kann eine Größe von null haben.