Skip to main content
Skip table of contents

f$BitmapCreate


f$BitmapCreate

Create an image while using a template to specify resolution and color depth of the image. If width and height are given, the dimensions of the image are modified.

The allowed image formats are Windows bitmap (.bmp), Portable Network Graphics (.png), Tagged Image File Format (.tif) or JPEG (.jpg).

Please note that, when entering a path in the file name, the character "\" must be entered twice ("\\").

If the image size is to be modified, width and height must be entered. It is not allowed to specify a concrete value to one of the two values and to set the other value to 0.

Syntax:

Status = f$BitmapCreate (Name, Template, Width, Height)

German status = f$BitmapAnlegen (Name, Vorlage, Breite, Höhe)

 

Argument

Type

Meaning

 

Name

String

Name of the image to be created including path.

 

Template

String

Name of the image to be used as template. This image must already exist.

 

Width

Integer

Width of the image in pixels. If 0 is entered, the width of the template is used.

 

Height

Integer

Height of the image in pixels. If 0 is entered, the height of the template is used.

Result:

Integer

 

Example:

Template = 'C:\\temp\\template.bmp'
File = 'C:\\temp\\new.bmp'
Width = 1000
Height = 1000
Status = f$BitmapCreate (File, Template , Width, Height)
File = 'C:\\temp\\oben.bmp'
Status = f$BitmapInsert (File, 0, 0)
File = 'C:\\temp\\unten.bmp'
Status = f$BitmapInsert (File, 0, 500)
Status = f$BitmapDrawLine (0,0,1000,1000,255,0,0,5)
Status = f$BitmapDrawLine (1000,0,0,1000,255,0,0,5)
Status = f$BitmapFont ('Arial',24,1,0)
Status = f$BitmapDrawText (200,200,'Text',0,255,0)
Status = f$BitmapRotate (90)
Status = f$BitmapSave ()

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.