www.gnostice.com 

AddImageMemAsResource Method

Top  Previous  Next

The AddImageMemAsResource method adds a graphic item (from memory) to a list of Image resources.

 

 

 

 

Syntax

 

 

[VC++]

long AddImageMemAsResource(long ImageBuf, long BufSize, long ImageType);

 

[C#]

public abstract new System.Int32 AddImageMemAsResource ( System.Int32 ImageBuf , System.Int32 BufSize , eDocEngineX.TxgtImageType ImageType )

 

[VB]

Function AddImageMemAsResource(ImageBuf As Long, BufSize As Long, ImageType As TxgtImageType) As Long)

 

 

 

 

 

 

Parameters

 

 

ImageBuf

The starting address of the memory where image data is stored.

 

 

BufSize

The size of the buffer.

 

 

ImageType

The type of the image.

 

 

 

 

Return Value

 

 

Index of the image in the resource. This index can be used as parameter to draw the same graphic at different locations using DrawImageRI method.

 

 

 

 

Remarks

 

 

The AddImageMemAsResource method adds an image as a resource to the engine. All engines maintain a list of reusable resources. Once an image is added to the engine as a resource, it can be used any number of times in the document. This will allow the engine to write the image information in an optimized way so that file size is kept to minimum. Following are the values of TxgtImageType:

 

 

 

 

Image Type

Values

itBMP

0

itJPEG

1

itMetafile

2

itIcon

3

 

 

 

See Also

 

 

AddImageAsResource, DrawImageRI