---
name: "EMF_EXTPEN"
section: "3"
platform: "linux"
package: "libemf-doc"
version: "1.0.13-8"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/EMF_EXTPEN"
---

# EMF\_EXTPEN(3)

Extended Graphics Pen.

## NAME

EMF::EXTPEN - Extended Graphics Pen.

## SYNOPSIS

`#include <libemf.h>`

Inherits **EMF::GRAPHICSOBJECT**, and tagEXTLOGPEN.

### Public Member Functions

**EXTPEN** (const EXTLOGPEN \*lpen)\
 OBJECTTYPE **getType** (void) const\
 **METARECORD** \* **newEMR** (HDC dc, HGDIOBJ emf\_handle)\

Public Member Functions inherited from **EMF::GRAPHICSOBJECT** virtual **~GRAPHICSOBJECT** ()\
 GRAPHICSOBJECTs has a virtual destructor.

Public Member Functions inherited from **EMF::OBJECT** virtual **~OBJECT** ()\
 OBJECTs have a virtual destructor.  **OBJECT** (void)\

### Additional Inherited Members

Data Fields inherited from **EMF::GRAPHICSOBJECT** std::map\< HDC, HGDIOBJ \> **contexts**\

Data Fields inherited from **EMF::OBJECT** HGDIOBJ **handle**\

## Detailed Description

Extended Graphics Pen.

Pens are used for drawing lines, arc, rectangles, etc.

## Constructor & Destructor Documentation

### EMF::EXTPEN::EXTPEN (const EXTLOGPEN \* lpen)` [inline]`

**Parameters**

*lpen* the (logical?) pen definition.

## Member Function Documentation

### OBJECTTYPE EMF::EXTPEN::getType (void) const` [inline]`, ` [virtual]`

Return the type of this object (could probably do better with RTTI()).

Implements **EMF::OBJECT**.

### METARECORD \* EMF::EXTPEN::newEMR (HDC dc, HGDIOBJ emf\_handle)` [inline]`, ` [virtual]`

Return a new metarecord for this object. And record its selection into the given device context.

**Parameters**

*dc* handle of device context into which this object is being selected. \
 *emf\_handle* the EMF handle associated with the **PEN**.

Implements **EMF::GRAPHICSOBJECT**.

References **EMF::GRAPHICSOBJECT::contexts**.

## Author

Generated automatically by Doxygen for libemf from the source code.
