“显示属性”如图29-1所示,当前软件系统支持多种BGI

(1)         标准的640 X 480 X 16 VGA方式

(2)         WinSail 内部的VESA标准的640 X 400 X 256、640 X 480 X 256、800 X 600 X 256、1024 X 768 X 256

(3)         用户自带BGI文件注:通过Display段的BGI键描述)。

2: 建议用户只选择VGA_640*480*16Color,在这个显示模式下可与BC31BGI共存!!

3: 许多Borland C++3.1中的图形函数已经被挂接看下表所示。如果在VGA_640*480*16Color分辨下,两种函数是相同结果的,

但在其它分辨率下就必须调用WinSail”的图形,其中只有红色部份方能在其它分辨率下支持

 

WinSail图形函数库

 

序号

Borland C++中的图形库

WinSail图形库

序号

Borland C++中的图形库

WinSail图形库

01

registerfarbgidriver

RegisterFarBgiDriver

49

installuserdriver

InstallUserDriver

02

arc

Arc

50

installuserfont

InstallUserFont

03

bar

Bar

51

line

Line

04

bar3d

Bar3D

52

linerel

Linerel

05

circle

Circle

53

lineto

LineTo

06

cleardevice

ClearDevice

54

moverel

Moverel

07

clearviewport

ClearViewPort

55

moveto

MoveTo

08

closegraph

CloseGraph

56

outtext

OutText

09

deletegraph

DeleteGraph

57

outtextxy

OutTextXY

10

drawpoly

DrawPoly

58

pieslice

PieSlice

11

ellipse

Ellipse

59

putimage

PutImage

12

fillellipse

FillEllipse

60

putpixel

PutPixel

13

fillpoly

FillPoly

61

rectangel

Rectangle

14

folldfill

FolldFill

62

rstorecrtmode

RestoreCrtMode

15

getarccoords

GetArcCoords

63

sector

Sector

16

getarccoords

GetArcCoords

64

setactivepage

SetActivePage

17

getaspectratio

GetAspectRatio

65

setallpalette

SetAllPalette

18

getbkcolor

GetBKColor

66

setaspectratio

SetAspectRatio

19

getcolor

GetColor

67

setbkcolor

SetBkColor

20

getdefaultpalette

GetDefaultPalette

68

setcolor

SetColor

21

getdrivername

GetDriverName

69

setfillpattern

SetFillPattern

22

getfillpattern

GetFillPattern

70

setfillstyle

SetFillStyle

23

getfillsettings

GetFillSettings

71

setgraphbufsize

SetGraphBufSize

24

getgraphmode

GetGraphMode

72

setgraphmode

SetGraphMode

25

getimage

GetImage

73

setlinestyle

SetLineStyle

26

getlinesettings

GetLineSettings

74

setpalette

SetPalette

27

getmaxcolor

GetMaxColor

75

setrgbpalette

SetRgbPalette

28

getmaxmode

GetMaxMode

76

settextjustify

SetTextJustify

29

getmaxx

GetMaxX

77

settextstyle

SetTextStyle

30

getmaxy

GetMaxY

78

setusercharsize

SetUserCharSize

31

getmodename

GetModeName

79

setviewport

SetViewPort

32

getmoderange

GetModeRange

80

setvisualpage

SetVisualPage

33

getpixel

GetPixel

81

setwritemode

SetWriteMode

34

getpalette

GetPalette

82

textheight

TextHeight

35

getpalettesize

GetPaletteSize

83

textwidth

TextWidth

36

gettextsettings

GetTextSettings

84

getpalattelocation

GetPalatteLocation

37

getviewsettings

GetViewSettings

85

writepalatte

WrtiePalatte

38

getx

GetX

86

readpalatte

ReadPalatte

39

gety

GetY

87

getdisplaydevice

GetDisplayDevice

40

graphdefaults

GraphDefaults

88

getdisplaymode