PS_ARC(3) Library Functions Manual PS_ARC(3)NAME
PS_arc -- Draws an arc counterclockwise
SYNOPSIS
#include <pslib.h>
void PS_arc(PSDoc *psdoc, float x, float y, float radius, float alpha, float beta)
DESCRIPTION
Draws a portion of a circle with its middle point at (x, y). The arc starts at an angle of alpha and ends at an angle of beta. It is drawn
counterclockwise. The subpath added to the current path starts on the arc at angle alpha and ends on the arc at angle beta.
SEE ALSO PS_arcn(3), PS_circle(3)AUTHOR
This manual page was written by Uwe Steinmann uwe@steinmann.cx.
PS_ARC(3)
Check Out this Related Man Page
CAIRO_ARC(3) 1 CAIRO_ARC(3)CairoContext::arc - Adds a circular arc
Object oriented style (method):
SYNOPSIS
public void CairoContext::arc (float $x, float $y, float $radius, float $angle1, float $angle2)
DESCRIPTION
Procedural style:
void cairo_arc (CairoContext $context, float $x, float $y, float $radius, float $angle1, float $angle2)
Adds a circular arc of the given radius to the current path. The arc is centered at ($x, $y), begins at $angle1 and proceeds in the direc-
tion of increasing angles to end at $angle2. If $angle2 is less than $angle1 it will be progressively increased by 2*M_PI until it is
greater than $angle1. If there is a current point, an initial line segment will be added to the path to connect the current point to the
beginning of the arc. If this initial line is undesired, it can be avoided by calling CairoContext::newSubPath or procedural
cairo_new_sub_path(3) before calling CairoContext::arc or cairo_arc(3). Angles are measured in radians. An angle of 0.0 is in the direction
of the positive X axis (in user space). An angle of M_PI/2.0 radians (90 degrees) is in the direction of the positive Y axis (in user
space). Angles increase in the direction from the positive X axis toward the positive Y axis. So with the default transformation matrix,
angles increase in a clockwise direction. (To convert from degrees to radians, use degrees * (M_PI / 180.).) This function gives the arc in
the direction of increasing angles; see CairoContext::arcNegative or cairo_arc_negative(3) to get the arc in the direction of decreasing
angles.
PARAMETERS
o $context
- A valid CairoContext object
o $x
- x position
o $y
- y position
o $radius
- Radius of the arc
o $angle1
- start angle
o $angle2
- end angle
RETURN VALUES
No value is returned.
EXAMPLES
Example #1
Object oriented style
<?php
$s = new CairoImageSurface(CairoFormat::ARGB32, 100, 100);
$c = new CairoContext($s);
$c->setSourceRgb(0, 0, 0);
$c->paint();
$c->setLineWidth(1);
$c->setSourceRgb(1, 1, 1);
for ($r = 50; $r > 0; $r -= 10) {
$c->arc(50, 50, $r, 0, 2 * M_PI);
$c->stroke();
$c->fill();
}
$s->writeToPng(dirname(__FILE__) . '/CairoContext__arc.png');
?>
Example #2
Procedural style
<?php
$s = cairo_image_surface_create(CAIRO_SURFACE_TYPE_IMAGE, 100, 100);
$c = cairo_create($s);
cairo_set_source_rgb($c, 0, 0, 0);
cairo_paint($c);
cairo_set_source_rgb($c, 1, 1, 1);
cairo_set_line_width($c, 1);
for ($r = 50; $r > 0; $r -= 10) {
cairo_arc($c, 50, 50, $r, 0, 2 * M_PI);
cairo_stroke($c);
cairo_fill($c);
}
cairo_surface_write_to_png($s, dirname(__FILE__) . '/cairo_arc.png');
?>
SEE ALSO
CairoContext::arcNegative.
PHP Documentation Group CAIRO_ARC(3)
Hi,
Can somebody help me with ldapsearch? I am a newbie with linux and trying to do a ldapquery to resolve a full name from Active Directory?
When i give the command ldapsearch -h sso541885 "cn=mloon"
I get the error "ldap_sasl_interactive_bind_s: can't contact ldap server
Regards,
... (6 Replies)
We have an application that uses Active directory to authenticate the users. the admins of the app. were complaining because the windows domain controller they are going against is not very stable. I wrote a shell script using ldapsearch to look up a user against the domain controller their app... (2 Replies)
Good morning,
Firstly my appologies if this post is not exactly approprate for this forum but I do not know were else to post it. If anyone knows of a better forum for this please let me know.
I need to script an ldapsearch that will interrogate both unix and windows ldap servers. When it... (1 Reply)
I have a script that iterates through all the users that have logged in to the system for the past day and pulls out their role(s), adding them to a file.
The iteration part is working just fine, but the issue I have is with the result. When I do the LDAP query, the results I get are:
... (2 Replies)
Hello all
I would like to know if it's possible to extract users from Active Directory and parse the output to obtain a XML file with specific format.
So the AD is a windows machine, and I would like to extract from a red hat linux serveur. I try ldapsearch command and ok I'm abble to extract... (5 Replies)
How can I do a ldapsearch to find a DN for a user when I know the exact cn for that user out of active directory.
I have tried several different commands (hundreds) but need the -b with the full dn to perform the search using ldapsearch from AIX. I am trying to find the OU for a user and the... (3 Replies)
Hi there everyone. I'm trying to make a bash script that accepts some arguments ans give's back some info about LDAP users and servers.
I have this function :
has_group_access(){
result=$(ldapsearch -LLL "cn=${GROUP_NAME}" cn member | cut -d"," -f1 | cut -d":" -f2 | cut -d"=" -f2 | grep... (1 Reply)
Hi
I do a very simple monitoring of our OpenLDAP (runs in cronjob and generate alerts if unsuccessfull)
$ ldapsearch -h hostname.domain -D "cn=monitor_user,ou=People,dc=organisation" -w "password" -b "dc=organisation" -x "(&(cn=monitor_user)(ou=People))" dn | grep -v version
dn:... (4 Replies)
Hello all,
Hope you all are doing good :).
First of all, I apologize for my bad English
I want to get list of all user that have 'sudoCommand: ALL'
I've tried different sed and awk combinations without success :wall:
the command for extracting the OU for sudo is:
ldapsearch -x... (4 Replies)
Using ldapsearch, I've built the following command to get what I need.
ldapsearch -x -LLL -E pr=200/noprompt -h abc-loc.somecompany.com -D "account@somecompany.com" -w password -b "ou=End Users,ou=Accounts,dc=abc,dc=somecompany,dc=com" -s sub '(distinguishedName=CN=Bob\\, Billy J,OU=End... (8 Replies)
When I execute the code below with cn set to the $adgroup variable, I get the following error:
Invalid DN syntax (34)
Additional information: 0000208F: NameErr: DSID-031001F7, problem 2006 (BAD_NAME), data 8349, best match of:
,ou=Resource,ou=groups,dc=abc,dc=somecompany,dc=com'
If I set cn... (6 Replies)
Hi,
I'm trying to make a bash script to read LDAP (from MS active directory with ldapsearch), extract the fields 'mail', 'division', 'memberOf', 'userAccountControl', 'uidNumber', 'name', 'sAMAccountName' and save in a mysql database.
I have extracted the fields with ldapsearch but I am... (2 Replies)