CAD::Drawing::Manipulate::Graphics 0.26
Sponsored Links
CAD::Drawing::Manipulate::Graphics 0.26 Ranking & Summary
File size:
0.039 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1094
Date added:
2006-10-25
Publisher:
Eric L. Wilhelm
CAD::Drawing::Manipulate::Graphics 0.26 description
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 dont 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);
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 dont 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);
CAD::Drawing::Manipulate::Graphics 0.26 Screenshot
Advertisements
CAD::Drawing::Manipulate::Graphics 0.26 Keywords
CAD
Graphics 0.26
image
addr
crop
point
definition
object
CAD::Drawing::Manipulate::Graphics
CADDrawingManipulateGraphics
CAD::Drawing::Manipulate::Graphics 0.26
Libraries
Programming
Bookmark CAD::Drawing::Manipulate::Graphics 0.26
CAD::Drawing::Manipulate::Graphics 0.26 Copyright
WareSeeker periodically updates pricing and software information of CAD::Drawing::Manipulate::Graphics 0.26 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 CAD::Drawing::Manipulate::Graphics 0.26 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
CAD::Drawing::Manipulate is a Perl module to manipulate CAD::Drawing objects. Free Download
CAD::Drawing::Manipulate::Transform is a Perl module with Matrix methods for CAD::Drawing. Free Download
CAD::Drawing is a Perl module with methods to create, load, and save vector graphics. Free Download
CAD::Drawing::IO are I/O methods for the CAD::Drawing module. Free Download
CAD::Drawing::IO::Image is a Perl module with output methods for images. Free Download
CAD::Drawing::IO::Split is a Perl module that allows fast distributed text file methods. Free Download
CAD::Drawing::IO::Compressed is a Perl module to load and save compressed data. Free Download
CAD::Drawing::IO::PgDB is a Perl module with PostgreSQL save / load methods. Free Download
Latest Software
Popular Software
Favourite Software