Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    CAD::Drawing::Manipulate::Graphics 0.26

    Download button

    No screenshots available
    Downloads: 550  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Eric L. Wilhelm | More programs
    Perl Artistic License / FREE
    October 26th, 2006, 02:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    CAD::Drawing::Manipulate::Graphics description

    CAD::Drawing::Manipulate::Graphics - Gimp meets CAD.

    CAD::Drawing::Manipulate::Graphics - Gimp meets CAD.

    Methods

    All of these are CAD::Drawing methods (I force my own inheritance:)

    image_init

    Initialize the image at $addr based on the value at the fullpath key. This establishes the contained Image::Magick object and loads the image into memory in the image_handle key.

    $drw->image_init($addr);

    image_crop

    Crops an image and its definition (actually, changes its insert point) according to the points given by @crop_points (which maybe had better be within the object (but I don't really sweat that.))

    @crop_points should be in world coordinates as follows:

    @crop_points = (
    [$lower_left_x , $lower_left_y ],
    [$upper_right_x, $upper_right_y],
    );
    # note that you can get these as
    # ($drw->getExtentsRec($something))[0,2]

    $drw->image_crop($addr, @crop_points);

    image_scale

    Scales both the image and the definition by $scale, starting at @base_point.

    $drw->image_scale($addr, $scale, @base_point);

    image_rotate

    This leaves the definition orthoganal, expands the underlying image object, and resets the insert point and size properties accordingly.

    $drw->image_rotate($addr, $angle, @point);

    The current implementation does not handle the change to the image clipping boundary.

    image_swap_context

    This involves a scaling of the image (the contexts should be aligned over each other at this point or everything will go to hell.) Do your own move / rotate / crop before calling this, because all this does is to scale the underlying image object such that the vec property of the image definition at $dest_addr can be used correctly.

    Note that this does not "swap" the image to $dest_addr, rather it uses the image definition of $dest_addr to change the image object and definition at $source_addr.
    Also note that the image must fit completely inside (I think) of the destination in order for the composite to work correctly.

    $drw->image_swap_context($source_addr, $dest_addr);

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Manipulate Graphics | CAD Drawing | Perl module | CAD::Drawing::Manipu | Gimp | CAD

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM