Bildobjekt: Unterschied zwischen den Versionen

Aus AquaSoft Wiki
Zur Navigation springenZur Suche springen
 
Zeile 6: Zeile 6:
 
     function Sound: [[ISound]];
 
     function Sound: [[ISound]];
 
     function Content: [[IPictureContent]];
 
     function Content: [[IPictureContent]];
 +
    property Properties: TPictureProperties read GetProperties write SetProperties;
 
   end;  
 
   end;  
 +
 +
 +
  TPictureProperties = record
 +
    Width, Height: Integer;
 +
    Orientation: TImageOrientation;
 +
  end;
 
</code>
 
</code>
  

Aktuelle Version vom 6. Januar 2017, 12:58 Uhr

Das Bildobjekt ist vom Typ IPicture und leitet von ISlideShowObject ab.

 IPicture inherits from ISlideShowObject
   function Filename: IFilename;
   function Sound: ISound;
   function Content: IPictureContent;
   property Properties: TPictureProperties read GetProperties write SetProperties;
 end; 


 TPictureProperties = record
   Width, Height: Integer;
   Orientation: TImageOrientation;
 end;

Methoden

  • Objekt Erzeugung

 function CreatePictureObject: IPicture;

  • Ein Bildobjekt benötigt einen Dateinamen zu dem gespeicherten Bild. Dieser ist als IFilename im Bild gespeichert:

 function Filename: IFilename;


  • Ein Bildobjekt kann eine Soundspur enthalten. Der Datentyp dieser ist ein ISound

 function Sound: ISound;


  • Zugriff auf Inhalt Bildobjekt (also das Bild selbst, ohne Metadaten) vom Typ IPictureContent

 function Content: IPictureContent;