redhat man page for gimp::pdl

Query: gimp::pdl

OS: redhat

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

PDL(3)							User Contributed Perl Documentation						    PDL(3)

NAME
Gimp::PDL - Overwrite Tile/Region functions to work with piddles. This module is obsolete, please remove any references to it.
SYNOPSIS
use Gimp; use Gimp::PDL; use PDL;
DESCRIPTION
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!
AUTHOR
Marc Lehmann <pcg@goof.com>
SEE ALSO
Gimp::Pixel, perl(1), Gimp(1). perl v5.8.0 2000-02-02 PDL(3)
Related Man Pages
gimp::data(3) - redhat
gimp::oo(1) - redhat
gimp::pod(3) - redhat
gimp::util(3) - redhat
pdl::pptemplate(1) - redhat
Similar Topics in the Unix Linux Community
Make all words begin with capital letter?
Reduced Activity Notification
Create an unconfigured VMware host from a template that is set to do firstboot --reconfig
Shopt -s histappend
Issue with events occuring in DST window