'\" t .\" @(#)PEXGSE-PEXSunGseIdSetStrokeAAliasParams.3 1.5 95/04/07 SMI; .so man3/pex.macs .TH PEXGSE-PEXSunGseIdSetStrokeAAliasParams 3 "May 1995" "Solaris PEXlib Reference Manual" "" .SH NAME PEXGSE-PEXSunGseIdSetStrokeAAliasParams - PEX Set Stroke Anti-Aliasing Parameters .SH SYNTAX .HP void PEXGSE\^(\^Display *\fIdisplay\fP\^, XID \fIresource_id\fP\^, PEXOCRequestType \fIreq_type\fP\^, long \fIid\fP\^, int \fIlength\fP\^, char *\fIdata\fP\^) .SH PARAMETERS .TP 1i \fIdisplay\fP A pointer to a display structure returned by a successful .B XOpenDisplay call. .IP \fIresource_id\fP 1i The resource identifier of the renderer or structure. .IP \fIreq_type\fP 1i The request type for the output command ( .B PEXOCRender, .B PEXOCStore, .B PEXOCRenderSingle or .B PEXOCStoreSingle ). .IP \fIid\fP 1i The identifier of the GSE. .IP \fIlength\fP 1i The length, in bytes, of the GSE data. .IP \fIdata\fP 1i A pointer to the GSE data. .SH RETURNS None .SH DESCRIPTION .\" indexing .IX PEXGSE-PEXSunGseIdSetStrokeAAliasParams .IX "GSE" "PEXGSE-PEXSunGseIdSetStrokeAAliasParams" .LP To use the Sun SetStrokeAntiAliasingParameters GSE, the .I id parameter should be set to .B PEXSunGSEIdSetStrokeAAliasParams, the .I data parameter should be set to point to structure type .I pexSunGseStrokeAAlias, and the .I length parameter should be set to the total length of .I data. .LP This GSE is used to control stroke anti-aliasing for subsequent stroke primitives of width equal to one. .SH DATA STRUCTURES .nf typedef struct { .br CARD32 prim; INT32 blend_eq; INT32 filter_width; INT32 filter_shape; .br } pexSunGseStrokeAAlias; .fi .LP The .I prim field specifies the type of primitive for which this anti-aliasing specification applies. Values for .I prim are defined in .B SunPEX.h as listed below: .LP .TS center, box; lf3 cf3 lf3 l c l . Symbol Value Explanation _ PEXSunAAliasPrimLine 0x00000001 Anti-alias all polyline primitives. PEXSunAAliasPrimMarker 0x00000002 Anti-alias all polymarker primitives. PEXSunAAliasPrimText 0x00000004 Anti-alias all text primitives. PEXSunAAliasPrimHollowSurf 0x00000008 Anti-alias hollow surfaces. PEXSunAAliasPrimEdge 0x00000010 Anti-alias all edges. PEXSunAAliasPrimAll 0xffffffff Anti-alias all of the above. .TE .LP Values for .I blend_eq are defined in .B SunPEX.h as follows: .LP .TS center, box; lf3 cf3 lf3 l c l . Symbol Value Explanation _ PEXSunAAliasBlendNone 0 Do not anti-alias. PEXSunAAliasBlendArbitBG 1 Blend to an arbitrary background, blending on each pixel. PEXSunAAliasBlendConstBG 2 Blend to a constant background color 0. PEXSunAAliasBlendAddToBG 3 Blend by adding to the background. .TE .LP The following value is defined for .I filter_shape in .B SunPEX.h as follows: .LP .TS center, box; lf3 cf3 lf3 l c l . Symbol Value Explanation _ PEXSunAAliasFiltShapeGaussian 0 Use a Gaussian filter. .TE .SH SEE ALSO .LP .nf .BR PEXGSE (3) .fi