���������� �� C/C++
getfillsettings()

#include <graphics.h>

void far  getfillsettings()

���������

struct fillsettingstype far *fillinfo ��������� �� ���������

��������

�������� ���������� � ������� ������� � ����� ����������

�. ��������� ��������� fillsettingstype, �� ������� ��������� fillinfo ����������� � ������� ������� � ����� ����������. fillsettingstype ������������ � graphics.h ��������� �������:

struct fillsettingstype{
	int pattern;	//������� ������ ����������
	int color;	//������� ���� ����������
};

������� bar, bar3d, fillpoly, floodfillpieslice ������� ��������� ������� ������� �������� ���������� � ������� ����� ����������. ���������� 11 ����� �������� ���������� (��������, ��������������, �������� � �. �.) ������������� ����� ��� ���������� �������� �������������� ������������� ����� fill_patterns � graphics.h. (������ �������, ����������� ����). ����� �����, �� ������ ���������� ���� ����������� �������.

���� pattern ����� 12 (USER_FILL), �� � ������ ����� ������������ ������, ������������ �������������; � ��������� ������ pattern ������ ����� ����������� �������. ������������� ��� fill_patterns, �������� � graphics.h ������ ��� ����������� ������� ���������� � ��������� ��� �������, ������������� �������������.

��� ��������    ��������
EMPTY_FILL 0 ���������� ������ ����
SOLID_FILL 1 �������� ���������� ������ ����������
LINE_FILL 2 ���������� ______
LSTLASH_FILL 3 ���������� //////
SLASH_FILL 4 ���������� /// ������� ������
BKSLASH_FILL 5 ���������� \\\ ������� ������
LTBKSLASH_FILL 6 ���������� \\\\
HATCH_FILL 7 ������� ��������� ������
XHATCH_FILL 8 �������������� ���������
INTERLEAVE_FILL 9 ������������� ���������
WIDE_DOT_FILL 10 ���������� ������� �������
CLOSE_DOT_FILL 11 ���������� ������� �������
USER_FILL 12 ������ ����������, ������������ �������������

���, ����� EMPTY_FILL ��������� ������� ������ ����������; EMPTY_FILL ���������� ������� ���� ����.


�������� �����

floodfill() — ��������� ������������ �������
setfillstyle() — ������������� ���� � ������ ����������
setfillpattern() — ����� ������ ���������� ������������ �������������
getfillpattern() — ���������� ������������ ������������� ������ ����������





Нет комментариев.



Оставить комментарий:
Ваше Имя:
Email:
Антибот: *  
Ваш комментарий: