Prty::TimeLapse::File - Bildsequenz-Datei
Prty::File::Image
# Klasse laden use %CLASS; # Instantiiere Bilddatei-Objekt $img = Prty::TimeLapse::File->new('/my/image/dir/000219-3000x2250-G0080108.jpg'); # Nummer $n = $img->number; # 219 # Breite $width = $img->width; # 3000 # Höhe $height = $img->height; # 2250 # Name $name = $img->name; # 'G0080108' # weitere Methoden siehe Basisklasse
Ein Objekt der Klasse repräsentiert eine Bilddatei, die Teil einer Bildsequenz ist. Der Dateiname hat den Aufbau
NNNNNN-WIDTHxHEIGHT[-NAME].EXT
Hierbei ist NNNNNN die Bild-Nummer.
$img = $class->new($file);
Pfad der Bilddatei.
Referenz auf das Bilddatei-Objekt.
Instantiiere Datei $file als Bilddatei-Objekt und liefere eine Referenz auf dieses Objekt zurück.
Alle weiteren Methoden befinden sich in der Basisklasse (s. Abschnitt "BASE CLASS").
$n = $img->number;
Integer >= 1
Liefere die Nummer des Bildes als Zahl. Z.B. 47.
$width = $img->width;
Liefere die Breite des Bildes.
$height = $img->height;
Liefere die Höhe des Bildes.
$text = $img->text;
String
Liefere den Text des Dateinamens.
1.125
Frank Seitz, http://fseitz.de/
Copyright (C) 2018 Frank Seitz
This code is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Prty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Prty
CPAN shell
perl -MCPAN -e shell install Prty
For more information on module installation, please visit the detailed CPAN module installation guide.