Gimp::PDL(3pm)

Gimp::PDL3pm

Overwrite tile/region functions to work with piddles. this module is obsolete, please remove any references to it.

Usage

  use Gimp;
  use Gimp::PDL;
  use PDL;

Overview

This module overwrites some methods of Gimp::Tile and Gimp::PixelRgn. The new functions return and accept piddles. The last argument (height) of "gimp_pixel_rgn_set_rect" is calculated from the piddle. There is no other way to access the raw pixeldata in Gimp.

Some exmaples:

 $region = $drawable->get->pixel_rgn (0,0, 100,100, 1,0);
 $pixel = $region->get_pixel (5,7);     # fetches the pixel from (5⎪7)
 print $pixel;                          # outputs something like
                                        # [255, 127, 0], i.e. in
                                        # RGB format ;)
 $region->set_pixel ($pixel * 0.5, 5, 7);# darken the pixel
 $rect = $region->get_rect (3,3,70,20); # get a horizontal stripe
 $rect = $rect->hclip(255/5)*5;         # clip and multiply by 5
 $region->set_rect($rect);              # and draw it!
 undef $region;                         # and update it!

Releases

3 releases since Debian 2.2 (Potato); the text changed 2 times.

  1. 2.2
  2. 3.0
  3. 3.1

Author

Marc Lehmann <[email protected]>

From libgimp-perl 2.0.dfsg-5 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.