Cadcorp SIS API Methods

CreateBitmap Method

Description

Creates a Bitmap item.

Syntax

Visual Basic
Public Function CreateBitmap( _
   ByVal filename As String, _
   ByVal x1 As Double, _
   ByVal y1 As Double, _
   ByVal x2 As Double, _
   ByVal y2 As Double, _
   ByVal bLinked As Integer, _
   ByVal bStretch As Integer _
) As Integer

Parameters

filename
The name of the bitmap to be opened.

x1
The extents within which the Bitmap item will be placed.

y1
The extents within which the Bitmap item will be placed.

x2
The extents within which the Bitmap item will be placed.

y2
The extents within which the Bitmap item will be placed.

bLinked
True create a link to the filename.
False copy the contents of the filename.
 
bStretch
True stretch the bitmap item to fill the whole of the given extents.
False maintain the aspect ratio of the bitmap item within the given extents.

Remarks

This API method respects the axes angle setting: the x, y, z values are interpreted within the axes and all new items created will align to the axes angle. If a group is open, graphics are added to the group, otherwise a new item is created. 

Available: GEO MD MM ME OD OM SISpy

Group:

Example

sis.CreateBitmap ("C:Data\photo.bmp", 100, 100, 500, 500, True, True )


Send comments on this topic.

Click to return to www.cadcorp.com

© Copyright 2000-2017 Computer Aided Development Corporation Limited (Cadcorp).