InetSendBitmap method (ILEADRasterInet)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short InetSendBitmap (ILEADRaster *pRaster, RasterFileConstants Format, short iBitsPerPixel, QFactorConstants Quality);

Overview

Refer to Implementing Internet Functionality.

Remarks

Sends a bitmap to all the remote computers in the SendList and generates an InetReceiveBitmap event on the remote computer(s).

The bitmap is first saved as a file in memory in the format specified by iFormat. If you require additional options when saving a file (such as Progressive JPEG, Interlaced GIF, etc.) then you should use the SaveMemory method in the Main Control. You can then send the image using InetSendData, with iType set to IDATA_IMAGE.

This means you can send files in any of the supported compressed or uncompressed formats.

Before you can send data to a remote computer, you must have an open connection.

You can open a connection in two ways:

1) Setup the local computer as a server and listen for connections using the InetServerInit method. When connection requests are received, open the connection using the InetAcceptConnect method.

2) Connect to an existing server using the InetConnect method.

See Also

Elements:

InetServerInit method, InetConnect method, InetAcceptConnect method, InetAccept event, InetSendDIB method, InetSendData method, InetReceiveBitmap event, InetReceiveData event, InetReceiveStart event, InetError event, SendList property, InetSendSound method, InetReceiveSound event

Topics

Working with Internet Functionality: Sending and Receiving Data