Hello once again:
One thing that seems to be a nice feature is a progress gauge... so I can see how long an operation will take for a task to complete if it is requiring a lot of processing or the file is enormous. I have seen references to gauge operations, but I don't know anything about it or... (1 Reply)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
This is a problem I am having with my 2 semester senior project. I have a LAMP server running Ubuntu 9.10 with... (8 Replies)
hey everyone, new here
i have arch setup and i am using smbnetfs to mount some windows shares in /mnt/smbnet
what i want to do is copy files from my home dir to a dir in /mnt/smbnet but i also need it to remove files if i have deleted them from my home dir
seems that cp would be the... (8 Replies)
Hi,
This is my program.
#!/bin/bash
today=`date +"%b-%d-%Y"`
SERVICE="pbxconnect.php"
if ; then
echo "pbx program is running"
else
nohup php pbxconnect.php > logpbx-$today.txt &
fi
On executing using "sh myprogram.sh" , i get the following error.
myprogram.sh: line 4: '
My... (7 Replies)
I'm a bit new to bash programming and I was assigned the job of writing a script that will check to see if a program server is running and to restart the program if it is not up. The script is supposed to check the program every hour (which I have looked up and I believe I know how to do) and send... (3 Replies)
I just can't figure it out , so please just give me a pice of advise how to:
The existing Linux program foo2bar takes as its only argument the name of a single foo file and converts it to an appropriately-named bar file. Provide a script that when executed will run foo2bar against all foo... (4 Replies)
I'm trying to write a script the simplifies the execution of a program:
After starting the program (sh ~/.mfix/model/make_mfix) I am prompted four times for options:
Do you need SMP version? (y/n)
Do you need DMP version? (y/n)
Do you need debug version? (y/n)
Force re-compilation of... (2 Replies)
suppose i have a bash script:
#!/bin/bash
echo "hello"
echo "how are you"
echo "today"
how can i put the entire script above into a basic c program?
i do not want to translate the bash code to a c code. i want C to run the bash code. is this possible?
i found this on the... (15 Replies)
I wish to be able to give to a client the opportunity to :
0) Turn one of my ubuntu computers into a webserver
1) See a webpage after visiting a url where an external user/client can set a couple of variables (e.g. Number1= ?, Number2=?)
2) By pressing "run" the program runs on my machine
3)... (1 Reply)
I am working on a script to get the final total size and so far have the following and wondering if this can be improved.
# Compare the desired size of each lvm to the standard size. If it is desired is larger than calculate the difference and keep that value as the amount to add to that LVM. ... (5 Replies)
Discussion started by: user3528
5 Replies
LEARN ABOUT SUNOS
mlib_imageblendcolor_fp_inp
mlib_ImageBlendColor_Fp_Inp(3MLIB) mediaLib Library Functions mlib_ImageBlendColor_Fp_Inp(3MLIB)NAME
mlib_ImageBlendColor_Fp_Inp - blend an image and a color, in place
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_ImageBlendColor_Fp_Inp(mlib_image *srcdst, const mlib_d64 *color, mlib_s32 cmask);
DESCRIPTION
The mlib_ImageBlendColor_Fp_Inp() function blends an image and a color with the alpha channel.
It uses the following equation:
Cd = Cs*As + Cc*(1 - As)
Ad = 1.0
where, Cs and Cd are the RGB color components of the source and destination images, respectively. As and Ad are the alpha components of
the source and destination images, respectively. Cc is the color component of the constant color.
For MLIB_FLOAT and MLIB_DOUBLE images, the alpha coefficients are assumed to be in the range of [0.0, 1.0].
The images can have two to four channels. The length of color array must not be less than the number of channels in the images.
PARAMETERS
The function takes the following arguments:
srcdst Pointer to the source and destination image.
color Array of constant color components.
cmask Channel mask to indicate the alpha channel. Each bit of cmask represents a channel in the image. The channel corresponding
to the highest bit with value 1 is the alpha channel.
RETURN VALUES
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO mlib_ImageBlendColor_Fp(3MLIB), mlib_ImageBlendColor(3MLIB), mlib_ImageBlendColor_Inp(3MLIB), attributes(5)SunOS 5.10 10 Nov 2004 mlib_ImageBlendColor_Fp_Inp(3MLIB)