gimp feature 1.211
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 239
Gimp::Feature 1.211
Gimp::Feature is a Perl module that can check for specific features to be present before registering the script. more>>
Gimp::Feature is a Perl module that can check for specific features to be present before registering the script.
SYNOPSIS
use Gimp::Feature;
or
use Gimp::Feature qw(feature1 feature2 ...);
This module can be used to check for specific features to be present. This can be used to deny running the script when neccessary features are not present. While some features can be checked for at any time, the Gimp::Fu module offers a nicer way to check for them.
gtk
checks for the presence of the gtk interface module.
gtk-1.1, gtk-1.2
checks for the presence of gtk-1.1 (1.2) or higher.
perl-5.005
checks for perl version 5.005 or higher.
pdl
checks for the presence of a suitable version of PDL (>=1.9906).
gnome
checks for the presence of the Gnome-Perl module.
gtkxmhtl
checks for the presence of the Gtk::XmHTML module.
unix
checks wether the script runs on a unix-like operating system. At the moment, this is every system except windows, macos, os2 and vms.
persistency
checks wether the Gimp::Data module (Gimp::Data) can handle complex persistent data structures, i.e. perl references in addition to plain strings.
The following features can only be checked after Gimp-main> has been called (usually found in the form exit main). See Gimp::Fu on how to check for these.
gimp-1.1, gimp-1.2
checks for the presense of gimp in at least version 1.1 (1.2).
FUNCTIONS
present(feature)
Checks for the presense of the single feature given as the argument. Returns true if the feature is present, false otherwise.
need(feature,[function-name])
Require a specific feature. If the required feature is not present the program will exit gracefully, logging an appropriate message. You can optionally supply a function name to further specify the place where this feature was missing.
This is the function used when importing symbols from the module.
missing(feature-description,[function-name])
Indicates that a generic feature (described by the first argument) is missing. A function name can further be specified. This function will log the given message and exit gracefully.
describe(feature)
Returns a string describing the given feature in more detail, or undef if there is no description for this feature.
list()
Returns a list of features that can be checked for. This list might not be complete.
<<lessSYNOPSIS
use Gimp::Feature;
or
use Gimp::Feature qw(feature1 feature2 ...);
This module can be used to check for specific features to be present. This can be used to deny running the script when neccessary features are not present. While some features can be checked for at any time, the Gimp::Fu module offers a nicer way to check for them.
gtk
checks for the presence of the gtk interface module.
gtk-1.1, gtk-1.2
checks for the presence of gtk-1.1 (1.2) or higher.
perl-5.005
checks for perl version 5.005 or higher.
pdl
checks for the presence of a suitable version of PDL (>=1.9906).
gnome
checks for the presence of the Gnome-Perl module.
gtkxmhtl
checks for the presence of the Gtk::XmHTML module.
unix
checks wether the script runs on a unix-like operating system. At the moment, this is every system except windows, macos, os2 and vms.
persistency
checks wether the Gimp::Data module (Gimp::Data) can handle complex persistent data structures, i.e. perl references in addition to plain strings.
The following features can only be checked after Gimp-main> has been called (usually found in the form exit main). See Gimp::Fu on how to check for these.
gimp-1.1, gimp-1.2
checks for the presense of gimp in at least version 1.1 (1.2).
FUNCTIONS
present(feature)
Checks for the presense of the single feature given as the argument. Returns true if the feature is present, false otherwise.
need(feature,[function-name])
Require a specific feature. If the required feature is not present the program will exit gracefully, logging an appropriate message. You can optionally supply a function name to further specify the place where this feature was missing.
This is the function used when importing symbols from the module.
missing(feature-description,[function-name])
Indicates that a generic feature (described by the first argument) is missing. A function name can further be specified. This function will log the given message and exit gracefully.
describe(feature)
Returns a string describing the given feature in more detail, or undef if there is no description for this feature.
list()
Returns a list of features that can be checked for. This list might not be complete.
Download (0.26MB)
Added: 2006-07-13 License: Perl Artistic License Price:
1201 downloads
Gimp::Fu 1.211
Gimp::Fu is a easy to use framework for Gimp scripts. more>>
Gimp::Fu is a "easy to use" framework for Gimp scripts.
SYNOPSIS
use Gimp;
use Gimp::Fu;
(this module uses Gtk, so make sure its correctly installed)
Currently, there are only three functions in this module. This fully suffices to provide a professional interface and the ability to run this script from within the Gimp and standalone from the commandline.
In general, a Gimp::Fu script looks like this:
#!/path/to/your/perl
use Gimp;
use Gimp::Fu;
register , sub {
your code;
}
exit main;
(This distribution comes with example scripts. One is examples/example-fu.pl, which is small Gimp::Fu-script you can take as starting point for your experiments)
<<lessSYNOPSIS
use Gimp;
use Gimp::Fu;
(this module uses Gtk, so make sure its correctly installed)
Currently, there are only three functions in this module. This fully suffices to provide a professional interface and the ability to run this script from within the Gimp and standalone from the commandline.
In general, a Gimp::Fu script looks like this:
#!/path/to/your/perl
use Gimp;
use Gimp::Fu;
register , sub {
your code;
}
exit main;
(This distribution comes with example scripts. One is examples/example-fu.pl, which is small Gimp::Fu-script you can take as starting point for your experiments)
Download (0.26MB)
Added: 2006-07-13 License: Perl Artistic License Price:
1200 downloads
Gimp::Net 1.211
Gimp::Net is a communication module for the gimp-perl server. more>>
Gimp::Net is a communication module for the gimp-perl server.
For Gimp::Net (and thus commandline and remote scripts) to work, you first have to install the "Perl-Server" extension somewhere where Gimp can find it (e.g in your .gimp/plug-ins/ directory). Usually this is done automatically while installing the Gimp extension. If you have a menu entry < Xtns/Perl-Server > then it is probably installed.
The Perl-Server can either be started from the < Xtns > menu in Gimp, or automatically when a perl script cant find a running Perl-Server.
When started from within The Gimp, the Perl-Server will create a unix domain socket to which local clients can connect. If an authorization password is given to the Perl-Server (by defining the environment variable GIMP_HOST before starting The Gimp), it will also listen on a tcp port (default 10009).
Since the password is transmitted in cleartext, using the Perl-Server over tcp effectively lowers the security of your network to the level of telnet. Even worse: the current Gimp::Net-protocol can be used for denial of service attacks, i.e. crashing the Perl-Server. There also *might* be buffer-overflows (although I do care a lot for these).
<<lessFor Gimp::Net (and thus commandline and remote scripts) to work, you first have to install the "Perl-Server" extension somewhere where Gimp can find it (e.g in your .gimp/plug-ins/ directory). Usually this is done automatically while installing the Gimp extension. If you have a menu entry < Xtns/Perl-Server > then it is probably installed.
The Perl-Server can either be started from the < Xtns > menu in Gimp, or automatically when a perl script cant find a running Perl-Server.
When started from within The Gimp, the Perl-Server will create a unix domain socket to which local clients can connect. If an authorization password is given to the Perl-Server (by defining the environment variable GIMP_HOST before starting The Gimp), it will also listen on a tcp port (default 10009).
Since the password is transmitted in cleartext, using the Perl-Server over tcp effectively lowers the security of your network to the level of telnet. Even worse: the current Gimp::Net-protocol can be used for denial of service attacks, i.e. crashing the Perl-Server. There also *might* be buffer-overflows (although I do care a lot for these).
Download (0.26MB)
Added: 2006-10-26 License: Perl Artistic License Price:
1093 downloads
Gimp::Data 1.211
Gimp::Data is a Perl module to set and get state data. more>>
Gimp::Data is a Perl module to set and get state data.
SYNOPSIS
use Gimp::Data;
$Gimp::Data{value1} = "Hello";
print $Gimp::Data{value1},", World!!n";
With this module, you can access plugin-specific (or global) data in Gimp, i.e. you can store and retrieve values that are stored in the main Gimp application.
An example would be to save parameter values in Gimp, so that on subsequent invocations of your plug-in, the user does not have to set all parameter values again (Gimp::Fu does this already).
<<lessSYNOPSIS
use Gimp::Data;
$Gimp::Data{value1} = "Hello";
print $Gimp::Data{value1},", World!!n";
With this module, you can access plugin-specific (or global) data in Gimp, i.e. you can store and retrieve values that are stored in the main Gimp application.
An example would be to save parameter values in Gimp, so that on subsequent invocations of your plug-in, the user does not have to set all parameter values again (Gimp::Fu does this already).
Download (0.26MB)
Added: 2006-10-26 License: Perl Artistic License Price:
1093 downloads
Gimp::UI 1.211
Gimp::UI is a simulation of libgimpui, and more! more>>
Gimp::UI is a "simulation of libgimpui", and more!
Due to the braindamaged (read: "unusable") libgimpui API, I had to reimplement all of it in perl.
$option_menu = new Gimp::UI::ImageMenu
$option_menu = new Gimp::UI::LayerMenu
$option_menu = new Gimp::UI::ChannelMenu
$option_menu = new Gimp::UI::DrawableMenu (constraint_func, active_element, var);
$button = new Gimp::UI::PatternSelect;
$button = new Gimp::UI::BrushSelect;
$button = new Gimp::UI::GradientSelect;
$button = new Gimp::UI::ColorSelectButton;
<<lessDue to the braindamaged (read: "unusable") libgimpui API, I had to reimplement all of it in perl.
$option_menu = new Gimp::UI::ImageMenu
$option_menu = new Gimp::UI::LayerMenu
$option_menu = new Gimp::UI::ChannelMenu
$option_menu = new Gimp::UI::DrawableMenu (constraint_func, active_element, var);
$button = new Gimp::UI::PatternSelect;
$button = new Gimp::UI::BrushSelect;
$button = new Gimp::UI::GradientSelect;
$button = new Gimp::UI::ColorSelectButton;
Download (0.26MB)
Added: 2006-10-26 License: Perl Artistic License Price:
1096 downloads
Gimp::Compat 1.211
Gimp::Compat is a Perl module with compatibility functions for older versions of Gimp. more>>
Gimp::Compat is a Perl module with compatibility functions for older versions of Gimp.
SYNOPSIS
< loaded automatically on demand >
Older versions of Gimp (version 1.0 at the time of this writing) lack some very important or useful functions.
This module is providing the most needed replacement functions. If you happen to miss a function then please create a replacement function and send it to me ;)
These functions are handled in exactly the same way as PDB-Functions, i.e. the (hypothetical) function gimp_image_xyzzy can be called as $image->xyzzy, if the module is available.
FUNCTIONS
gimp_text_fontname, gimp_get_extents_fontname
These are emulated in 1.0.
gimp_paintbrush
The last two arguments only available in 1.1 are simply dropped.
<<lessSYNOPSIS
< loaded automatically on demand >
Older versions of Gimp (version 1.0 at the time of this writing) lack some very important or useful functions.
This module is providing the most needed replacement functions. If you happen to miss a function then please create a replacement function and send it to me ;)
These functions are handled in exactly the same way as PDB-Functions, i.e. the (hypothetical) function gimp_image_xyzzy can be called as $image->xyzzy, if the module is available.
FUNCTIONS
gimp_text_fontname, gimp_get_extents_fontname
These are emulated in 1.0.
gimp_paintbrush
The last two arguments only available in 1.1 are simply dropped.
Download (0.26MB)
Added: 2006-10-26 License: Perl Artistic License Price:
1093 downloads
Gimp::Module 1.211
Gimp::Module can run scripts embedded into the Gimp program. more>>
Gimp::Module can run scripts embedded into the Gimp program.
SYNOPSIS
not anything you would expect - and not documented, even!
<<lessSYNOPSIS
not anything you would expect - and not documented, even!
Download (0.26MB)
Added: 2006-10-26 License: Perl Artistic License Price:
1093 downloads
Gimp::Util 1.211
Gimp::Util is a Perl module to some handy routines for Gimp-Perl users. more>>
Gimp::Util is a Perl module to some handy routines for Gimp-Perl users.
SYNOPSIS
use Gimp;
use Gimp::Util;
Gimp-Perl is nice, but when you have to write everytime 10 lines just to get some simple functions done, it very quickly becomes tedious :-/
This module tries to define some functions that aim to automate frequently used tasks, i.e. its a sort of catch-all-bag for (possibly) useful macro functions. If you want to add a function just mail the author of the Gimp-Perl extension (see below).
In Gimp-Perl (but not in Gimp as seen by the enduser) it is possible to have layers that are NOT attached to an image. This is, IMHO a bad idea, you end up with them and the user cannot see them or delete them. So we always attach our created layers to an image here, too avoid memory leaks and debugging times.
These functions try to preserve the current settings like colors, but not all do.
These functions can also be handled in exactly the same way as PDB-Functions, i.e. the (hypothetical) function gimp_image_xyzzy can be called as $image->xyzzy, if the module is available.
The need to explicitly use Gimp::Util will go away in the future.
FUNCTIONS
get_state (), set_state state
get_state returns a scalar representing most of gimps global state (at the moment foreground colour, background colour, active gradient, pattern and brush). The state can later be restored by a call to set_state. This is ideal for library functions such as the ones used here, at least when it includes more state in the future.
layer_create image,name,color,pos
create a colored layer, insert into image and return layer
text_draw image,layer,text,font,size,fgcolor
Create a colored text, draw over a background, add to img, ret img.
image_create_text text,font,size,fgcolor,bgcolor
Create an image, add colored text layer on a background layer, return img.
layer_add_layer_as_mask image,layer,layermask
Take a layer and add it as a mask to another layer, return mask.
gimp_text_wh $text,$fontname
returns the width and height of the "$text" of the given font (XLFD format)
gimp_image_layertype $alpha
returns the corresponding layer type for an image, alpha controls wether the layer type is with alpha or not. Example: imagetype: RGB -> RGB_IMAGE (or RGBA_IMAGE).
gimp_layer2imagetype $layertype
returns the corresponding layer type for an image, alpha controls wether the layer type is with alpha or not. Example: imagetype: RGB -> RGB_IMAGE (or RGBA_IMAGE).
gimp_image_add_new_layer $image,$index,$fill_type,$alpha
creates a new layer and adds it at position $index (default 0) to the image, after filling it with gimp_drawable_fill $fill_type (default BG_IMAGE_FILL). If $alpha is non-zero (default 1), the new layer has alpha.
gimp_image_set_visible $image,@layers, gimp_image_set_invisible $image,@layers
mark the given layers visible (invisible) and all others invisible (visible).
gimp_layer_get_position $layer
return the position the layer has in the image layer stack.
gimp_layer_set_position $layer,$new_index
moves the layer to a new position in the layer stack.
<<lessSYNOPSIS
use Gimp;
use Gimp::Util;
Gimp-Perl is nice, but when you have to write everytime 10 lines just to get some simple functions done, it very quickly becomes tedious :-/
This module tries to define some functions that aim to automate frequently used tasks, i.e. its a sort of catch-all-bag for (possibly) useful macro functions. If you want to add a function just mail the author of the Gimp-Perl extension (see below).
In Gimp-Perl (but not in Gimp as seen by the enduser) it is possible to have layers that are NOT attached to an image. This is, IMHO a bad idea, you end up with them and the user cannot see them or delete them. So we always attach our created layers to an image here, too avoid memory leaks and debugging times.
These functions try to preserve the current settings like colors, but not all do.
These functions can also be handled in exactly the same way as PDB-Functions, i.e. the (hypothetical) function gimp_image_xyzzy can be called as $image->xyzzy, if the module is available.
The need to explicitly use Gimp::Util will go away in the future.
FUNCTIONS
get_state (), set_state state
get_state returns a scalar representing most of gimps global state (at the moment foreground colour, background colour, active gradient, pattern and brush). The state can later be restored by a call to set_state. This is ideal for library functions such as the ones used here, at least when it includes more state in the future.
layer_create image,name,color,pos
create a colored layer, insert into image and return layer
text_draw image,layer,text,font,size,fgcolor
Create a colored text, draw over a background, add to img, ret img.
image_create_text text,font,size,fgcolor,bgcolor
Create an image, add colored text layer on a background layer, return img.
layer_add_layer_as_mask image,layer,layermask
Take a layer and add it as a mask to another layer, return mask.
gimp_text_wh $text,$fontname
returns the width and height of the "$text" of the given font (XLFD format)
gimp_image_layertype $alpha
returns the corresponding layer type for an image, alpha controls wether the layer type is with alpha or not. Example: imagetype: RGB -> RGB_IMAGE (or RGBA_IMAGE).
gimp_layer2imagetype $layertype
returns the corresponding layer type for an image, alpha controls wether the layer type is with alpha or not. Example: imagetype: RGB -> RGB_IMAGE (or RGBA_IMAGE).
gimp_image_add_new_layer $image,$index,$fill_type,$alpha
creates a new layer and adds it at position $index (default 0) to the image, after filling it with gimp_drawable_fill $fill_type (default BG_IMAGE_FILL). If $alpha is non-zero (default 1), the new layer has alpha.
gimp_image_set_visible $image,@layers, gimp_image_set_invisible $image,@layers
mark the given layers visible (invisible) and all others invisible (visible).
gimp_layer_get_position $layer
return the position the layer has in the image layer stack.
gimp_layer_set_position $layer,$new_index
moves the layer to a new position in the layer stack.
Download (0.26MB)
Added: 2006-10-26 License: Perl Artistic License Price:
1093 downloads
Gimp::Pixel 1.211
Gimp::Pixel is a how to operate on raw pixels. more>>
Gimp::Pixel is a how to operate on raw pixels.
***WARNING*** this manpage is no longer up-to-date. See examples/map_to_gradient for a simple raw-pixel-manipulating plug-in. If you bug me enough Ill rewrite this document.
SYNOPSIS
use Gimp;
use PDL; # to make sensible things with the pixels
# Gimp::GimpDrawable - The GimpDrawable structure
# Gimp::Tile - The Tile family of functions.
# Gimp::PixelRgn - The PixelRgn family of functions.
You can access the pixels in a drawable through tiles or pixel regions. This manpage explains how this is done in perl. All classes (Gimp::GimpDrawable, Gimp::Tile, Gimp::PixelRgn) are available with and without the Gimp:: prefix.
<<less***WARNING*** this manpage is no longer up-to-date. See examples/map_to_gradient for a simple raw-pixel-manipulating plug-in. If you bug me enough Ill rewrite this document.
SYNOPSIS
use Gimp;
use PDL; # to make sensible things with the pixels
# Gimp::GimpDrawable - The GimpDrawable structure
# Gimp::Tile - The Tile family of functions.
# Gimp::PixelRgn - The PixelRgn family of functions.
You can access the pixels in a drawable through tiles or pixel regions. This manpage explains how this is done in perl. All classes (Gimp::GimpDrawable, Gimp::Tile, Gimp::PixelRgn) are available with and without the Gimp:: prefix.
Download (0.26MB)
Added: 2006-10-26 License: Perl Artistic License Price:
1112 downloads
Gimp::Lib 1.211
Gimp::Lib is an interface to libgimp (as opposed to Gimp::Net). more>>
Gimp::Lib is an interface to libgimp (as opposed to Gimp::Net).
SYNOPSIS
use Gimp; # internal use only
This is the package that interfaces to The Gimp via the libgimp interface, i.e. the normal interface to use with the Gimp. You dont normally use this module directly, look at the documentation for the package "Gimp".
<<lessSYNOPSIS
use Gimp; # internal use only
This is the package that interfaces to The Gimp via the libgimp interface, i.e. the normal interface to use with the Gimp. You dont normally use this module directly, look at the documentation for the package "Gimp".
Download (0.26MB)
Added: 2006-10-26 License: Perl Artistic License Price:
1096 downloads
Gimp::OO 1.211
Gimp::OO is a Perl module with pseudo-OO for Gimp functions. more>>
Gimp::OO is a Perl module with pseudo-OO for Gimp functions.
SYNOPSIS
use Gimp; # Gimp::OO is now part of Gimp.
As you might have noticed, you can sort most gimp functions fall into three groups, depending on the name-prefix: gimp_, plug_in_, extension_ etc..
Whats more, there are functions groups like gimp_image_ or gimp_selection_, operating on a common object, Images and Selection in this case.
If you only had the plain syntax, your scripts would quickly aquire the "vertical gimp syndrome":
gimp_palette_set_foreground(...)
gimp_layer_new(...)
gimp_palette_set_background(...)
gimp_image_add_layer(...)
etc. Of course, your fingers will suffer from severe injuries as well.
A solution to this situation is to use OO-syntax. Gimp plays some (very) dirty tricks and provides a number of classes, like Gimp::Image and Gimp::Palette that allow shorter identifiers to be used (all these appear with the Gimp:: prefix as well as without, i.e. Gimp::Palette is the same class as Palette).
If you call a method, Gimp tries to find a gimp function by prepending a number of prefixes until it finds a valid function:
$image = Gimp->image_new(...); # calls gimp_image_new(...)
$image = Image->new(...); # calls gimp_image_new as well
$image = new Image(...); # the same in green
Palette->set_foreground(...) # calls gimp_palette_set_foreground(..)
Return values from functions are automatically blessed (through The Magic Autobless feature ;) to their corresponding classes, i.e.
$image = new Image(...); # $image is now blessed to Gimp::Image
$image->height; # calls gimp_image_height($image)
$image->flatten; # likewise gimp_flatten($image)
$image->histogram(...); # calls gimp_histogram($image,...), since
# gimp_image_histogram does not exist
The class argument ($image in the above examples) is prepended to the argument list.
Another shortcut: many functions want a (redundant) image argument, like
$image->shear ($layer, ...)
Since all you want is to shear the $layer, not the $image, this is confusing as well. In cases like this, Gimp allows you to write:
$layer->shear (...)
And automatically infers the additional IMAGE-type argument.
As the (currently) last goodie, if the first argument is of type INT32, its name is "run_mode" and there are no other ambiguties, you can omit it, i.e. these three calls are equivalent:
plug_in_gauss_rle (RUN_NONINTERACTIVE, $image, $layer, 8, 1, 1);
plug_in_gauss_rle ($image, $layer, 8, 1, 1);
plug_in_gauss_rle ($layer, 8, 1, 1);
You can call all sorts of sensible and not-so-sensible functions, so this feature can be abused:
patterns_list Image; # will call gimp_patterns_list
quit Plugin; # will quit the Gimp, not an Plugin.
there is no image involved here whatsoever...
<<lessSYNOPSIS
use Gimp; # Gimp::OO is now part of Gimp.
As you might have noticed, you can sort most gimp functions fall into three groups, depending on the name-prefix: gimp_, plug_in_, extension_ etc..
Whats more, there are functions groups like gimp_image_ or gimp_selection_, operating on a common object, Images and Selection in this case.
If you only had the plain syntax, your scripts would quickly aquire the "vertical gimp syndrome":
gimp_palette_set_foreground(...)
gimp_layer_new(...)
gimp_palette_set_background(...)
gimp_image_add_layer(...)
etc. Of course, your fingers will suffer from severe injuries as well.
A solution to this situation is to use OO-syntax. Gimp plays some (very) dirty tricks and provides a number of classes, like Gimp::Image and Gimp::Palette that allow shorter identifiers to be used (all these appear with the Gimp:: prefix as well as without, i.e. Gimp::Palette is the same class as Palette).
If you call a method, Gimp tries to find a gimp function by prepending a number of prefixes until it finds a valid function:
$image = Gimp->image_new(...); # calls gimp_image_new(...)
$image = Image->new(...); # calls gimp_image_new as well
$image = new Image(...); # the same in green
Palette->set_foreground(...) # calls gimp_palette_set_foreground(..)
Return values from functions are automatically blessed (through The Magic Autobless feature ;) to their corresponding classes, i.e.
$image = new Image(...); # $image is now blessed to Gimp::Image
$image->height; # calls gimp_image_height($image)
$image->flatten; # likewise gimp_flatten($image)
$image->histogram(...); # calls gimp_histogram($image,...), since
# gimp_image_histogram does not exist
The class argument ($image in the above examples) is prepended to the argument list.
Another shortcut: many functions want a (redundant) image argument, like
$image->shear ($layer, ...)
Since all you want is to shear the $layer, not the $image, this is confusing as well. In cases like this, Gimp allows you to write:
$layer->shear (...)
And automatically infers the additional IMAGE-type argument.
As the (currently) last goodie, if the first argument is of type INT32, its name is "run_mode" and there are no other ambiguties, you can omit it, i.e. these three calls are equivalent:
plug_in_gauss_rle (RUN_NONINTERACTIVE, $image, $layer, 8, 1, 1);
plug_in_gauss_rle ($image, $layer, 8, 1, 1);
plug_in_gauss_rle ($layer, 8, 1, 1);
You can call all sorts of sensible and not-so-sensible functions, so this feature can be abused:
patterns_list Image; # will call gimp_patterns_list
quit Plugin; # will quit the Gimp, not an Plugin.
there is no image involved here whatsoever...
Download (0.26MB)
Added: 2006-10-26 License: Perl Artistic License Price:
1093 downloads
Gimp::Config 1.211
Gimp::Config is a Perl module with config options found during configure time. more>>
Gimp::Config is a Perl module with config options found during configure time.
The Gimp::Config module creates a tied hash %Gimp::Config which contains all the definitions the configure script and perl deduced from the system configuration at configure time. You can access these values just like you access any other values, i.e. $Gimp::Config{KEY}. Some important keys are:
IN_GIMP => true when gimp-perl was part of the Gimp distribution.
GIMP => the path of the gimp executable
prefix => the installation prefix
libdir => the gimp systemwide libdir
bindir => paths where gimp binaries are installed
gimpplugindir => the gimp plug-in directory (without the /plug-ins-suffix)
<<lessThe Gimp::Config module creates a tied hash %Gimp::Config which contains all the definitions the configure script and perl deduced from the system configuration at configure time. You can access these values just like you access any other values, i.e. $Gimp::Config{KEY}. Some important keys are:
IN_GIMP => true when gimp-perl was part of the Gimp distribution.
GIMP => the path of the gimp executable
prefix => the installation prefix
libdir => the gimp systemwide libdir
bindir => paths where gimp binaries are installed
gimpplugindir => the gimp plug-in directory (without the /plug-ins-suffix)
Download (0.26MB)
Added: 2006-10-26 License: Perl Artistic License Price:
1093 downloads
Gimp::Pod 1.211
Gimp::Pod is a Perl module to evaluate pod documentation embedded in scripts. more>>
Gimp::Pod is a Perl module to evaluate pod documentation embedded in scripts.
SYNOPSIS
use Gimp::Pod;
$pod = new Gimp::Pod;
$text = $pod->format ();
$html = $pod->format (html);
$synopsis = $pod->section (SYNOPSIS);
$author = $pod->author;
@sections = $pod->sections;
Gimp::Pod can be used to find and parse embedded pod documentation in gimp-perl scripts. At the moment only the formatted text can be fetched, future versions might have more interesting features.
<<lessSYNOPSIS
use Gimp::Pod;
$pod = new Gimp::Pod;
$text = $pod->format ();
$html = $pod->format (html);
$synopsis = $pod->section (SYNOPSIS);
$author = $pod->author;
@sections = $pod->sections;
Gimp::Pod can be used to find and parse embedded pod documentation in gimp-perl scripts. At the moment only the formatted text can be fetched, future versions might have more interesting features.
Download (0.26MB)
Added: 2006-10-26 License: Perl Artistic License Price:
1093 downloads
Gimp::PDL 1.211
Gimp::PDL is a Perl module to overwrite Tile/Region functions to work with piddles. more>>
Gimp::PDL is a Perl module to 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;
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!
<<lessSYNOPSIS
use Gimp;
use Gimp::PDL;
use PDL;
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!
Download (0.26MB)
Added: 2006-10-26 License: Perl Artistic License Price:
1093 downloads
Gimp::basewidget 1.211
Gimp::basewidget is a pragma to declare the superclass of a gtk widget. more>>
Gimp::basewidget is a pragma to declare the superclass of a gtk widget.
SYNOPSIS
use Gimp::basewidget superclass;
e.g.
use Gimp::basewidget Gtk::Button;
This pragma can (but does not need to) be used to declare the current package as a childclass of an existing Gtk widget class. The only "import tag" must be the name of the existing superclass.
The module automatically registers a subtype, calls a special callback at gtk initialization time and provides default implementations for some common methods (the list might grow in the future to enhance settor/gettor functionality).
The following methods are provided. All of them can be overriden in your package.
new
A simple generic new constructor is provided. It will simply call Gtk::Object::new with all the provided arguments.
GTK_INIT
This callback is called as early as possible after gtk was initialized, but not before. This can be used to register additional subtypes, argument types etc. It is similar to GTK_CLASS_INIT.
GTK_CLASS_INIT
Unlike the standard Gtk-callback of the same name, this method can be omitted in your package (while still being a valid Widget).
GTK_OBJECT_INIT
This callback can also be omitted, but this rarely makes sense.
BUGS
This was a pain to implement, you will not believe this when looking at the code, though.
<<lessSYNOPSIS
use Gimp::basewidget superclass;
e.g.
use Gimp::basewidget Gtk::Button;
This pragma can (but does not need to) be used to declare the current package as a childclass of an existing Gtk widget class. The only "import tag" must be the name of the existing superclass.
The module automatically registers a subtype, calls a special callback at gtk initialization time and provides default implementations for some common methods (the list might grow in the future to enhance settor/gettor functionality).
The following methods are provided. All of them can be overriden in your package.
new
A simple generic new constructor is provided. It will simply call Gtk::Object::new with all the provided arguments.
GTK_INIT
This callback is called as early as possible after gtk was initialized, but not before. This can be used to register additional subtypes, argument types etc. It is similar to GTK_CLASS_INIT.
GTK_CLASS_INIT
Unlike the standard Gtk-callback of the same name, this method can be omitted in your package (while still being a valid Widget).
GTK_OBJECT_INIT
This callback can also be omitted, but this rarely makes sense.
BUGS
This was a pain to implement, you will not believe this when looking at the code, though.
Download (0.26MB)
Added: 2006-07-11 License: Perl Artistic License Price:
1201 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above gimp feature 1.211 search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed