| 1 | package Graphics::Primitive::Image; | ||
| 2 | use Moose; | ||
| 3 | use MooseX::Storage; | ||
| 4 | |||
| 5 | extends 'Graphics::Primitive::Component'; | ||
| 6 | |||
| 7 | with qw(MooseX::Clone Graphics::Primitive::Aligned); | ||
| 8 | with Storage (format => 'JSON', io => 'File'); | ||
| 9 | |||
| 10 | has image => ( | ||
| 11 | is => 'rw', | ||
| 12 | isa => 'Str' | ||
| 13 | ); | ||
| 14 | has scale => ( | ||
| 15 | is => 'rw', | ||
| 16 | isa => 'ArrayRef', | ||
| 17 | ); | ||
| 18 | |||
| 19 | __PACKAGE__->meta->make_immutable; | ||
| 20 | |||
| 21 | 1; | ||
| 22 | __END__ |