Class MetaObjectImage
Image drawing object stored in a a MetaFile, it's a fixed length record, image stream can be stored in MetaPage stream or in MetaFile stream (SharedImage=true)
Inherited Members
Namespace: Reportman.Drawing
Assembly: Reportman.Drawing.dll
Syntax
public class MetaObjectImage : MetaObject
Constructors
MetaObjectImage()
Declaration
public MetaObjectImage()
Fields
CopyMode
Integer CopyMode, for future use
Declaration
public int CopyMode
Field Value
| Type | Description |
|---|---|
| int |
DPIRes
Dots per inch image resolution
Declaration
public int DPIRes
Field Value
| Type | Description |
|---|---|
| int |
DrawImageStyle
Image draw style (crop, stretch, full...)
Declaration
public ImageDrawStyleType DrawImageStyle
Field Value
| Type | Description |
|---|---|
| ImageDrawStyleType |
PreviewOnly
The image should be drawn in preview only, not in printout (useful for preprinted forms)
Declaration
public bool PreviewOnly
Field Value
| Type | Description |
|---|---|
| bool |
SharedImage
If true the image is saved on MetaFile stream instead of MetaPage stream, so multiple pages can share images to save memory and to generate smaller Adobe PDF output files
Declaration
public bool SharedImage
Field Value
| Type | Description |
|---|---|
| bool |
StreamPos
Stream begin position in MetaPage or MetaFile stream
Declaration
public long StreamPos
Field Value
| Type | Description |
|---|---|
| long |
StreamSize
Stream length
Declaration
public long StreamSize
Field Value
| Type | Description |
|---|---|
| long |
Methods
FillFromBuf(byte[], int, int)
Fill the values of a MetaObjectImage, loading it from a binary buffer
Declaration
public override void FillFromBuf(byte[] buf, int index, int ver)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | buf | Buffer containing information in binary format |
| int | index | Index to begin read in the buffer |
| int | ver |
Overrides
SaveToStream(Stream, int)
Save the information of the object into a stream
Declaration
public override void SaveToStream(Stream astream, int ver)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | astream | Destination stream |
| int | ver |