GrCopyGC()

Name

GrCopyGC() -- Copy a graphics context into a new graphics context

Synopsis

GR_GC_ID GrCopyGC ( GR_GC_ID gc );

Description

This function creates a new graphics context and initializes it with values copied from an existing graphics context.

Parameters

TypeNameDescription
GR_GC_IDgcThe ID of the existing graphics context to copy.

Returns

The ID of the newly created graphics context structure, or 0 if unsuccessful.

See Also

GrNewGC(), GrDestroyGC(), GrSetGCForeground(), GrSetGCBackground(), GrSetGCUseBackground(), GrSetGCMode(), GrSetGCFont(), GrSetGCRegion().