CreateBitmap Method

This member of WaveLinkFactory Object is supported on: Palm, CE

The CreateBitmap method creates an image based on a bitmap file.

VB

object.CreateBitmap XCoord, YCoord, Width, Height, BitmapFile, MyColl

VC++

HRESULT hr = object->CreateBitmap(short XCoord, short YCoord, short Width, short Height, BSTR BitmapFile, WaveLinkWidgetCollection MyColl);

Parameters

XCoord

The starting left coordinate of the widget

YCoord

The starting top coordinate of the widget

Width

The horizontal extent of the widget. Pass a value of 0 to set the width automatically

Height

The vertical extent of the widget Pass a value of 0 to set the height automatically

BitmapFile

The file name of the bitmapped image. The file name must include the full path

MyColl

The name of the collection that will contain the widget

Remarks

The DefaultCoordinateType property determines how the application interprets the values entered for the position, width, and height of the widget.

You can set the size of the widget to AUTOSIZE by setting the width and height to zero (0).

The CreateBitmap method automatically stores the path for the bitmap image in the SpecialString property.

Example

' VB Sample Code
Dim fileIface As New RFFILE
Dim ioIface As New RFIO
Dim myCollection As New WaveLinkWidgetCollection
Dim myFactory As New WaveLinkFactory
.
.
.
' The following code illustrates an easy way to transfer the image file
fileIface.RFTransferFile "C:\temp\logo.bmp", "logo.bmp", True

' you may clear the screen
ioIface.RFPrint 0, 35, "", WLCLEAR

myFactory.DefaultCoordinateType = BYPIXEL
myFactory.CreateBitmap 20, 20, 35, 25, "logo.bmp", myCollection

myCollection.StoreWidgets

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal