Main > Programming > Libraries >

Gimp::Util 1.211

Gimp::Util 1.211

Sponsored Links

Gimp::Util 1.211 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.26 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 1093
Date added: 2006-10-26
Publisher: Marc Lehmann

Gimp::Util 1.211 description

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.

Gimp::Util 1.211 Screenshot

Advertisements

Gimp::Util 1.211 Keywords

Bookmark Gimp::Util 1.211

Hyperlink code:
Link for forum:

Gimp::Util 1.211 Copyright

WareSeeker periodically updates pricing and software information of Gimp::Util 1.211 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Gimp::Util 1.211 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Gimp::UI is a "simulation of libgimpui", and more! Free Download
Gimp::Fu is a "easy to use" framework for Gimp scripts. Free Download
Gimp::Pixel is a how to operate on raw pixels. Free Download
Gimp::PDL is a Perl module to overwrite Tile/Region functions to work with piddles. Free Download
Gimp::Lib is an interface to libgimp (as opposed to Gimp::Net). Free Download
Gimp::Net is a communication module for the gimp-perl server. Free Download
Gimp::Data is a Perl module to set and get state data. Free Download
Gimp::OO is a Perl module with pseudo-OO for Gimp functions. Free Download