09-29-2009
What have you done so far? What is the problem that you're having? Most folks around here are happy to help but generally not willing to do the work for you.
8 More Discussions You Might Find Interesting
1. Cybersecurity
hi ,
Is there anyway to change ip on sco5.04 i tried using netconfig on the prompt but gives me error . how do u manually change ip cant use acoadmin and netconfig ....
thx
art (2 Replies)
Discussion started by: art_malabanan
2 Replies
2. Post Here to Contact Site Administrators and Moderators
Hello,
Pls change my login name to Awadhesh instead of awadhesh if possible. it will be more better if it become Awadhesh Pandey.
Thanks a lot.
Awadhesh (2 Replies)
Discussion started by: Awadhesh
2 Replies
3. Solaris
hello
How can i change the ip address on my solaris sun 9 server ?
thank you (7 Replies)
Discussion started by: pascalbout
7 Replies
4. Shell Programming and Scripting
Hi,
I would like realize a script that it can change " wc -l" with "wc -l | sed 's/ //g'", but my problem is that i can have
a pipe ,a variable ( many variable different) or a file after wc -l ?how i could test this several case ?
wc -l | cut -d' ' -f1`
if
wc -l ${F} | awk... (1 Reply)
Discussion started by: francis_tom
1 Replies
5. Shell Programming and Scripting
Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies
6. Shell Programming and Scripting
I have 100 files in a directory , all the files have a word "error" and they are created in different date . Now I would like to change the word from "error" to "warning" , and keep the date of the files ( that means do not change the file creation date after change the word ) , can advise what can... (0 Replies)
Discussion started by: ust3
0 Replies
7. Shell Programming and Scripting
I have 100 files in a directory , all the files have a word "error" and they are created in different date . Now I would like to change the word from "error" to "warning" , and keep the date of the files ( that means do not change the file creation date after change the word ) , can advise what can... (7 Replies)
Discussion started by: ust3
7 Replies
8. SCO
Hello
I'm trying to virtualize an instance of Sco Unix 5.0.5 in VirtualBox (called VM-A) , but sco I have problems set to launch with the new raid controller .
The physical machine has a raid controller adaptec (alad driver) but VirtualBox uses buslogic (blc driver)
What ... (3 Replies)
Discussion started by: flako
3 Replies
LEARN ABOUT PHP
imagesetstyle
IMAGESETSTYLE(3) 1 IMAGESETSTYLE(3)
imagesetstyle - Set the style for line drawing
SYNOPSIS
bool imagesetstyle (resource $image, array $style)
DESCRIPTION
imagesetstyle(3) sets the style to be used by all line drawing functions (such as imageline(3) and imagepolygon(3)) when drawing with the
special color IMG_COLOR_STYLED or lines of images with color IMG_COLOR_STYLEDBRUSHED.
PARAMETERS
o $
image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3).
o $style
- An array of pixel colors. You can use the IMG_COLOR_TRANSPARENT constant to add a transparent pixel.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Following example script draws a dashed line from upper left to lower right corner of the canvas:
Example #1
imagesetstyle(3) example
<?php
header("Content-type: image/jpeg");
$im = imagecreatetruecolor(100, 100);
$w = imagecolorallocate($im, 255, 255, 255);
$red = imagecolorallocate($im, 255, 0, 0);
/* Draw a dashed line, 5 red pixels, 5 white pixels */
$style = array($red, $red, $red, $red, $red, $w, $w, $w, $w, $w);
imagesetstyle($im, $style);
imageline($im, 0, 0, 100, 100, IMG_COLOR_STYLED);
/* Draw a line of happy faces using imagesetbrush() with imagesetstyle */
$style = array($w, $w, $w, $w, $w, $w, $w, $w, $w, $w, $w, $w, $red);
imagesetstyle($im, $style);
$brush = imagecreatefrompng("http://www.libpng.org/pub/png/images/smile.happy.png");
$w2 = imagecolorallocate($brush, 255, 255, 255);
imagecolortransparent($brush, $w2);
imagesetbrush($im, $brush);
imageline($im, 100, 0, 0, 100, IMG_COLOR_STYLEDBRUSHED);
imagejpeg($im);
imagedestroy($im);
?>
The above example will output something similar to:[NOT DISPLAYABLE MEDIA]Output of example : imagesetstyle()
SEE ALSO
imagesetbrush(3), imageline(3).
PHP Documentation Group IMAGESETSTYLE(3)