Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 30.143.150 Times

GD::Image::Orientation 0.05

  Date Added: February 01, 2010  |  Visits: 729

GD::Image::Orientation

Report Broken Link
Printer Friendly Version


Product Homepage
Download (85 downloads)

GD::Image::Orientation is a Perl extension for managing a GD::Images vertical or horizontal orientation (shapewise). SYNOPSIS use GD::Image::Orientation; for(@images) { my $img = GD::Image->new($_) or die $!; $dbh->do("INSERT INTO photogallery.metainfo (Id,Orientation,File) VALUES (NULL,$img->isvertical,$dbh->quote($_))") or die $dbh->errstr; } Adds functionality to GD by adding class methods to determine orientation in boolean terms or in a string. Also included methods to set an images orientation; isvertical() $img->isvertical() Returns true if an images height is greater than its width. Call it with a true argument: $img->isvertical(1) and it returns true if an images height is greater than its width or it is square. ishorizontal() $img->ishorizontal() Returns true if an images width is greater than its height. Call it with a true argument: $img->ishorizontal(1) and it returns true if an images width is greater than its height or it is square. issquare() Returns true if an images width and height are the same. orientation() Returns a string describing its orientation in English. It returns horizontal, vertical, or square print The image you uploaded is . $img->orientation . " n"; vertical() If the image is horizontal it is rotated 90 degrees clockwise to become vertical. Call it with a true argument and its rotated 90 degrees counter clockwise to become vertical. It returns a new GD::Image object if modified or the original object if its already vertical or square. my $vert_img = $img->vertical; # rotate $img clockwise 90 degrees if its horizontal my $vert_img = $img->vertical(1); # rotate $img counter clockwise 90 degrees if its horizontal $img = $img->vertical; # rotate $img clockwise 90 degrees if its horizontal, modifying the original object If the second argument is true it will rotate it even if its sqare: my $vert_img = $img->vertical(0,1); # rotate $img clockwise if its horizontal or square my $vert_img = $img->vertical(1,1); # rotate $img counter clockwise if its horizontal or square horizontal() If the image is vertical it is rotated 90 degrees clockwise to become horizontal. Call it with a true argument and its rotated 90 degrees counter clockwise to become horizontal. It returns a new GD::Image object if modified or the original object if its already horizontal or square. my $hori_img = $img->horizontal; # rotate $img clockwise 90 degrees if its vertical my $hori_img = $img->horizontal(1); # rotate $img counter clockwise 90 degrees if its vertical $img = $img->horizontal; # rotate $img clockwise 90 degrees if its vertical, modifying the original object If the second argument is true it will rotate it even if its square: my $vert_img = $img->horizontal(0,1); # rotate $img clockwise if its vertical or square my $vert_img = $img->horizontal(1,1); # rotate $img counter clockwise if its vertical or square.

Requirements: No special requirements
Platforms: Linux
Keyword: Clockwise Counter Clockwise Degrees Gd Gdimageorientation Greater Than Horizontal If Its It Returns Libraries Rotate True Vertical
Users rating: 0/10

License: Freeware Size: 3.07 KB
GD::IMAGE::ORIENTATION RELATED
Games  -  Greater Than Sudoku 1. 2. 2000
This game is similar to Sudoku except that there are extra hints given by the ordinal relationship between the numbers in the blocks. In this game there will be a grid of 9 x 9 squares, the grid will further be divided into 9 subgroups of 3 x 3...
262 KB  
Games  -  Multiplayer Backgammon 1. 6. 2000
The object of this game is to move all your pegs in the counter clockwise direction until they are all at the lower right region, they can then be removed from the board. The first player to remove all the pegs win. To move the pegs, roll a pair...
262 KB  
Games  -  Kaizer 1.0.9
Kaizer is a free turn-based, digital board game for two players. It is a game about asteroid mining, resource management, tactical warfare and ruling the universe. Primary Objective: Destroy the enemy King ship. Secondary...
41.21 MB  
Utilities  -  BarBerClock 1.2
The clock used in the barber's. Choose the clockwise and counter clockwise and tap. Counterclockwise so that the face is inverted, you can look over time to determine the mirror. Requirements: iOS 3.1.2 or later. Compatible with iPhone,...
8.3 MB  
Games  -  Endless Mission II 1.0
A cool little endless space type game. Simple rule, but challenging. - Both jets are moving at the same time in circle. Touch the right side of the scene to move (rotate) clockwise, and left to rotate counter-clockwise. -...
9.6 MB  
Games  -  High-speed Smash 1.0
Exhilarating ? High-speed run game [ high-speed smash ] Watch out in 3D sickness ! [ Game Description ] Run game in the pipe . The clockwise in the left side of the screen tap , move counter-clockwise in the right corner of the...
27.6 MB  
Development Tools  -  swffit 2.3.2
swffit (formerly know as FitFlash) is a smart script that resizes your flash movie automatically if your browser window size is smaller or greater than your flash minimum desired size keeping it accessible independent of screen resolution.swffit...
204.8 KB  
Communication  -  Overlap Add Overlap Save methods implementation for block DFT processing 1.0
The overlap add and overlap save are the two generally implemented methods when the input is greater than the maximum processible block in MATLAB because of memory constraints.
10 KB  
Arcade Style Games  -  Tong 1.0
Sometimes the total is greater than the sum of the parts, Tetris and Pong are classics, addictive and unshakable from their places in gaming history. TONG is the result of mixing the two, capitalizing on the essential qualities of each classic and...
32.2 MB  
Security Tools  -  SubDirectory Cleanup 1.0.0.0
SubDirectory Cleanup is a simple and handy utility that allows the user to quickly and easily clean up old files from FTP folders or work folders whose age is greater than a specified number of days. The SubDirectory Cleanup can also be used to...
 
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB