line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package XML::NewsML_G2::Picture; |
2
|
|
|
|
|
|
|
|
3
|
18
|
|
|
18
|
|
123
|
use XML::NewsML_G2::Types; |
|
18
|
|
|
|
|
34
|
|
|
18
|
|
|
|
|
489
|
|
4
|
|
|
|
|
|
|
|
5
|
18
|
|
|
18
|
|
88
|
use Moose; |
|
18
|
|
|
|
|
39
|
|
|
18
|
|
|
|
|
92
|
|
6
|
18
|
|
|
18
|
|
106540
|
use namespace::autoclean; |
|
18
|
|
|
|
|
43
|
|
|
18
|
|
|
|
|
105
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
with 'XML::NewsML_G2::Role::RemoteVisual'; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has 'orientation', isa => 'Int', is => 'rw', default => 1; |
11
|
|
|
|
|
|
|
has 'colorspace', isa => 'Str', is => 'rw'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
### XXX move to News_Item, give role, scheme |
14
|
|
|
|
|
|
|
has 'altId', isa => 'Str', is => 'rw'; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
1; |
19
|
|
|
|
|
|
|
__END__ |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 NAME |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
XML::NewsML_G2::Picture - a picture specification |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 SYNOPSIS |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
my $pic = XML::NewsML_G2::Picture->new |
28
|
|
|
|
|
|
|
(rendition => 'highRes', |
29
|
|
|
|
|
|
|
mimetype => 'image/jpg', |
30
|
|
|
|
|
|
|
size => 21123 |
31
|
|
|
|
|
|
|
); |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=over 4 |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=item mimetype |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
The MIME type of the picture file (e.g. image/jpg) |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=item size |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
The size in bytes of the picture file |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
= item width |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
The width in pixel of the picture |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
= item height |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
The height in pixel of the picture |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
= item orientation |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
The picture orientation (1 is 'upright') |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
= item colorspace |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
The colorspace used by this picture (e.g. AdobeRGB) |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
= item altId |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Alternative identifiers. Optional. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=back |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 AUTHOR |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Christian Eder C<< <christian.eder@apa.at> >> |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 LICENCE AND COPYRIGHT |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Copyright (c) 2014, APA-IT. All rights reserved. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
See L<XML::NewsML_G2> for the license. |