C# Class Codecrete.SwissQRBill.WindowsTest.EmfMetaInfo

Retrieves meta infromation from EMF files.
Mostra file Open project: manuelbl/SwissQRBill.NET Class Usage Examples

Public Properties

Property Type Description
Bounds EmfRectangle
DeviceSizeMicrometer EmfSize
DeviceSizeMillimeter EmfSize
DeviceSizePixel EmfSize
Dpi int
Frame EmfRectangle
NumRecords int

Public Methods

Method 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

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

Method Details

EmfMetaInfo() public method

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

GetFrame() public method

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
return 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
return EmfRectangle

DeviceSizeMicrometer public_oe property

Size of reference device, in micrometer.
public EmfSize DeviceSizeMicrometer
return EmfSize

DeviceSizeMillimeter public_oe property

Size of reference device, in millimeters.
public EmfSize DeviceSizeMillimeter
return EmfSize

DeviceSizePixel public_oe property

Size of reference device, in pixel.
public EmfSize DeviceSizePixel
return EmfSize

Dpi public_oe property

DPI for pixel unit of metafile.
public int Dpi
return 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
return EmfRectangle

NumRecords public_oe property

Number of EMF recrods.
public int NumRecords
return int