Sponsored Content
Special Forums News, Links, Events and Announcements UNIX and Linux RSS News New committer: Konrad Jankowski (src) - SoC2008 alumnus. Post 302253620 by Linux Bot on Saturday 1st of November 2008 10:20:06 AM
Old 11-01-2008
New committer: Konrad Jankowski (src) - SoC2008 alumnus.

ImageAbout CommandCenter
Built by a system administrator for system administrators, Command Center is a tool to manage shell-based scripts with the capability to remotely run them on any UNIX or UNIX-like host/server with output logs that can be saved and printed.

Major features include but not limited to:
- Create and manage scripts for multiple UNIX/Linux/FreeBSD hosts and servers.
- Run any managed script on a UNIX/Linux/FreeBSD target host or server from the comfort of your Mac.
- Scripts are shell based which means you can remotely run bash, csh, Perl, Python, or ANY scriptable interpreter as long as the target host supports it.
- Remote connections are made using the secure SSH protocol.
- Output of script runs can be viewed, edited, copied, appendable, saved in a text file and printed on a printer.
- All scripts are stored on your Mac - no more lost scripts or manual script maintenance!
- Target hosts and servers can be saved and managed with optional password saving.
- Saved Command Center data files can be shared amongst colleagues, backed up, categorized or even edited using a normal text editor thanks to the XML format of the data file.
- Launch SSH in a Terminal window on a target host or server from within CommandCenter.

More...
 
IMAGEPALETTETOTRUECOLOR(3)						 1						IMAGEPALETTETOTRUECOLOR(3)

imagepalettetotruecolor - Converts a palette based image to true color

SYNOPSIS
bool imagepalettetotruecolor (resource $src) DESCRIPTION
Converts a palette based image, created by functions like imagecreate(3) to a true color image, like imagecreatetruecolor(3). PARAMETERS
o $ image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3). RETURN VALUES
Returns TRUE if the convertion was complete, or if the source image already is a true color image, otherwise FALSE is returned. EXAMPLES
Example #1 Converts any image resource to true color <?php // Backwards compatiblity if(!function_exists('imagepalettetotruecolor')) { function imagepalettetotruecolor(&$src) { if(imageistruecolor($src)) { return(true); } $dst = imagecreatetruecolor(imagesx($src), imagesy($src)); imagecopy($dst, $src, 0, 0, 0, 0, imagesx($src), imagesy($src)); imagedestroy($src); $src = $dst; return(true); } } // Helper closure $typeof = function() use($im) { echo 'typeof($im) = ' . (imageistruecolor($im) ? 'true color' : 'palette'), PHP_EOL; }; // Create a palette based image $im = imagecreate(100, 100); $typeof(); // Convert it to true color imagepalettetotruecolor($im); $typeof(); // Free the memory imagedestroy($im); ?> The above example will output: typeof($im) = palette typeof($im) = true color SEE ALSO
imagecreatetruecolor(3), imageistruecolor(3). PHP Documentation Group IMAGEPALETTETOTRUECOLOR(3)
All times are GMT -4. The time now is 04:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy