---
name: "Graphics::Primitive::Image"
section: "3pm"
platform: "linux"
package: "libgraphics-primitive-perl"
version: "0.67-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Graphics::Primitive::Image"
---

# Graphics::Primitive::Image(3pm)

Image component

## NAME

Graphics::Primitive::Image - Image component

## DESCRIPTION

Graphics::Primitive::Image is a Component that displays in image.

## SYNOPSIS

```
  use Graphics::Primitive::Image;
  my $img = Graphics::Primitive::Image->new(
      image => '/path/to/filename'
  );
```

## WARNING

**THIS COMPONENT IS EXPERIMENTAL.**

## METHODS

### Constructor

- *new*

  Creates a new Graphics::Primitive::Image.

### Instance Methods

- *horizontal\_alignment*

  Set/Get the horizontal alignment of this component's image.

- *image*

  Set/Get the filename of this components image.

- *vertical\_alignment*

  Set/Get the vertical alignment of this component's image.

## AUTHOR

Cory Watson, `"<gphat@cpan.org>"`

## COPYRIGHT & LICENSE

Copyright 2008-2010 by Cory G Watson.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
