C# Class Codecrete.SwissQRBill.WindowsTest.EmfMetaInfo

Retrieves meta infromation from EMF files.
Afficher le fichier Open project: manuelbl/SwissQRBill.NET Class Usage Examples

Méthodes publiques

Свойство Type Description
Bounds EmfRectangle
DeviceSizeMicrometer EmfSize
DeviceSizeMillimeter EmfSize
DeviceSizePixel EmfSize
Dpi int
Frame EmfRectangle
NumRecords int

Méthodes publiques

Méthode Description
EmfMetaInfo ( Array emfFile ) : System

Creates a new meta info instance.

GetFrame ( ) : RectangleF

Gets the metafile frame in pixels.

The frame is the metafile size set by the author.

This member function is similar to Metafile.GetBounds().

Private Methods

Méthode Description
ByteArrayToStructure ( Array bytes, int offset ) : T
ProcessEmfPlusRecords ( Array emfFile, int offset, int endOffset ) : void
Read ( Array emfFile ) : void

Method Details

EmfMetaInfo() public méthode

Creates a new meta info instance.
public EmfMetaInfo ( Array emfFile ) : System
emfFile Array EMF file as byte array
Résultat System

GetFrame() public méthode

Gets the metafile frame in pixels.

The frame is the metafile size set by the author.

This member function is similar to Metafile.GetBounds().

public GetFrame ( ) : RectangleF
Résultat RectangleF

Property Details

Bounds public_oe property

Bounds of metafile (in strange unit).

The bounds are the smallest rectangle that will fit all graphics elements.

public EmfRectangle Bounds
Résultat EmfRectangle

DeviceSizeMicrometer public_oe property

Size of reference device, in micrometer.
public EmfSize DeviceSizeMicrometer
Résultat EmfSize

DeviceSizeMillimeter public_oe property

Size of reference device, in millimeters.
public EmfSize DeviceSizeMillimeter
Résultat EmfSize

DeviceSizePixel public_oe property

Size of reference device, in pixel.
public EmfSize DeviceSizePixel
Résultat EmfSize

Dpi public_oe property

DPI for pixel unit of metafile.
public int Dpi
Résultat int

Frame public_oe property

Frame of metafile (in strange unit).

The frame is size of the metafile set by the author.

public EmfRectangle Frame
Résultat EmfRectangle

NumRecords public_oe property

Number of EMF recrods.
public int NumRecords
Résultat int