Enviar pesquisa
Carregar
برمجة الرسوم بلغة السي بلس بلس المرحلة الثالثة
•
4 gostaram
•
5,347 visualizações
ميثاق المعموري
Seguir
كتاب برمجه سي بلس خاص مرحله ثالثه
Leia menos
Leia mais
Ciências
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 23
Baixar agora
Baixar para ler offline
Recomendados
Visual surface detection i
Visual surface detection i
elaya1984
Difference between c, c++ and java
Difference between c, c++ and java
Mohanasundaram Nattudurai
Enums in c
Enums in c
Vijayananda Ratnam Ch
Dda algorithm
Dda algorithm
Mani Kanth
Depth Buffer Method
Depth Buffer Method
Ummiya Mohammedi
Top down parsing
Top down parsing
ASHOK KUMAR REDDY
Thrashing allocation frames.43
Thrashing allocation frames.43
myrajendra
Graphics in C++
Graphics in C++
Ahsan Mughal
Recomendados
Visual surface detection i
Visual surface detection i
elaya1984
Difference between c, c++ and java
Difference between c, c++ and java
Mohanasundaram Nattudurai
Enums in c
Enums in c
Vijayananda Ratnam Ch
Dda algorithm
Dda algorithm
Mani Kanth
Depth Buffer Method
Depth Buffer Method
Ummiya Mohammedi
Top down parsing
Top down parsing
ASHOK KUMAR REDDY
Thrashing allocation frames.43
Thrashing allocation frames.43
myrajendra
Graphics in C++
Graphics in C++
Ahsan Mughal
Pf cs102 programming-8 [file handling] (1)
Pf cs102 programming-8 [file handling] (1)
Abdullah khawar
Line Drawing Algorithms - Computer Graphics - Notes
Line Drawing Algorithms - Computer Graphics - Notes
Omprakash Chauhan
Bottom up parser
Bottom up parser
Akshaya Arunan
Seven step model of migration into the cloud
Seven step model of migration into the cloud
Raj Raj
Output primitives in Computer Graphics
Output primitives in Computer Graphics
Kamal Acharya
سلسلة تعلم البرمجة بلغة C / C++ - 2
سلسلة تعلم البرمجة بلغة C / C++ - 2
بندر المجلاد
Intro to programming and how to start that career
Intro to programming and how to start that career
Tarek Alabd
3.5 equivalence of pushdown automata and cfl
3.5 equivalence of pushdown automata and cfl
Sampath Kumar S
Parallel computing chapter 3
Parallel computing chapter 3
Md. Mahedi Mahfuj
DDA algorithm
DDA algorithm
Yash Patel
Algorithm & flow chart
Algorithm & flow chart
baabtra.com - No. 1 supplier of quality freshers
Asymptotic notations
Asymptotic notations
Nikhil Sharma
Polygon filling
Polygon filling
Mohanlal Sukhadia University (MLSU)
Recognition-of-tokens
Recognition-of-tokens
Dattatray Gandhmal
lazy learners and other classication methods
lazy learners and other classication methods
rajshreemuthiah
Computer graphics presentation
Computer graphics presentation
LOKENDRA PRAJAPATI
Introduction to c++ ppt
Introduction to c++ ppt
Prof. Dr. K. Adisesha
Lab report for Prolog program in artificial intelligence.
Lab report for Prolog program in artificial intelligence.
Alamgir Hossain
Back face detection
Back face detection
Pooja Dixit
Compiler Construction introduction
Compiler Construction introduction
Rana Ehtisham Ul Haq
برمجه حاسب1
برمجه حاسب1
jadalkinani1
برمجه حاسب1
برمجه حاسب1
jadalkinani1
Mais conteúdo relacionado
Mais procurados
Pf cs102 programming-8 [file handling] (1)
Pf cs102 programming-8 [file handling] (1)
Abdullah khawar
Line Drawing Algorithms - Computer Graphics - Notes
Line Drawing Algorithms - Computer Graphics - Notes
Omprakash Chauhan
Bottom up parser
Bottom up parser
Akshaya Arunan
Seven step model of migration into the cloud
Seven step model of migration into the cloud
Raj Raj
Output primitives in Computer Graphics
Output primitives in Computer Graphics
Kamal Acharya
سلسلة تعلم البرمجة بلغة C / C++ - 2
سلسلة تعلم البرمجة بلغة C / C++ - 2
بندر المجلاد
Intro to programming and how to start that career
Intro to programming and how to start that career
Tarek Alabd
3.5 equivalence of pushdown automata and cfl
3.5 equivalence of pushdown automata and cfl
Sampath Kumar S
Parallel computing chapter 3
Parallel computing chapter 3
Md. Mahedi Mahfuj
DDA algorithm
DDA algorithm
Yash Patel
Algorithm & flow chart
Algorithm & flow chart
baabtra.com - No. 1 supplier of quality freshers
Asymptotic notations
Asymptotic notations
Nikhil Sharma
Polygon filling
Polygon filling
Mohanlal Sukhadia University (MLSU)
Recognition-of-tokens
Recognition-of-tokens
Dattatray Gandhmal
lazy learners and other classication methods
lazy learners and other classication methods
rajshreemuthiah
Computer graphics presentation
Computer graphics presentation
LOKENDRA PRAJAPATI
Introduction to c++ ppt
Introduction to c++ ppt
Prof. Dr. K. Adisesha
Lab report for Prolog program in artificial intelligence.
Lab report for Prolog program in artificial intelligence.
Alamgir Hossain
Back face detection
Back face detection
Pooja Dixit
Compiler Construction introduction
Compiler Construction introduction
Rana Ehtisham Ul Haq
Mais procurados
(20)
Pf cs102 programming-8 [file handling] (1)
Pf cs102 programming-8 [file handling] (1)
Line Drawing Algorithms - Computer Graphics - Notes
Line Drawing Algorithms - Computer Graphics - Notes
Bottom up parser
Bottom up parser
Seven step model of migration into the cloud
Seven step model of migration into the cloud
Output primitives in Computer Graphics
Output primitives in Computer Graphics
سلسلة تعلم البرمجة بلغة C / C++ - 2
سلسلة تعلم البرمجة بلغة C / C++ - 2
Intro to programming and how to start that career
Intro to programming and how to start that career
3.5 equivalence of pushdown automata and cfl
3.5 equivalence of pushdown automata and cfl
Parallel computing chapter 3
Parallel computing chapter 3
DDA algorithm
DDA algorithm
Algorithm & flow chart
Algorithm & flow chart
Asymptotic notations
Asymptotic notations
Polygon filling
Polygon filling
Recognition-of-tokens
Recognition-of-tokens
lazy learners and other classication methods
lazy learners and other classication methods
Computer graphics presentation
Computer graphics presentation
Introduction to c++ ppt
Introduction to c++ ppt
Lab report for Prolog program in artificial intelligence.
Lab report for Prolog program in artificial intelligence.
Back face detection
Back face detection
Compiler Construction introduction
Compiler Construction introduction
Semelhante a برمجة الرسوم بلغة السي بلس بلس المرحلة الثالثة
برمجه حاسب1
برمجه حاسب1
jadalkinani1
برمجه حاسب1
برمجه حاسب1
jadalkinani1
سلسلة تعلم البرمجة بلغة C / C++ - 1
سلسلة تعلم البرمجة بلغة C / C++ - 1
بندر المجلاد
1- Languages Basics
1- Languages Basics
Ghadeer AlHasan
Nxt 2.0 programming
Nxt 2.0 programming
وزارة التربية والتعليم العمانية
C++
C++
ssuser051a42
C++
C++
ssuser051a42
Photoshop cs Ch2 بالعربي
Photoshop cs Ch2 بالعربي
Fuad Alkhaledy
الجزء العملى فى منهج الصف الثالث الإعدادى Visual Basic.Net 2005
الجزء العملى فى منهج الصف الثالث الإعدادى Visual Basic.Net 2005
Hanaa Ahmed
14th session python fifth gui
14th session python fifth gui
AliMohammad155
7 functions
7 functions
Bint EL-maghrabi
Loops
Loops
College Communications and Electronics
ملخص البرمجة المرئية - 1377
ملخص البرمجة المرئية - 1377
جامعة القدس المفتوحة
العروض التقديمية
العروض التقديمية
SALEH ALBHADAL
أريد تعلم البرمجة لكنني لا أعرف من أين أبدأ.pdf
أريد تعلم البرمجة لكنني لا أعرف من أين أبدأ.pdf
NadiaMohamedSherif
Raspberrypi احترف راسبيري باي القرية الهندسية
Raspberrypi احترف راسبيري باي القرية الهندسية
Abdalwahab Noureldien
C++ function (1) c++2
C++ function (1) c++2
MohammedDoos
الدليل العلمي لنظام الدي سبيس
الدليل العلمي لنظام الدي سبيس
Aml Sindi
Loops
Loops
College Communications and Electronics
البرمجة | أقوي مجالات العمل والربح من الانترنت..دليلك نحو الاحتراف
البرمجة | أقوي مجالات العمل والربح من الانترنت..دليلك نحو الاحتراف
Mohamed E. Saleh
Semelhante a برمجة الرسوم بلغة السي بلس بلس المرحلة الثالثة
(20)
برمجه حاسب1
برمجه حاسب1
برمجه حاسب1
برمجه حاسب1
سلسلة تعلم البرمجة بلغة C / C++ - 1
سلسلة تعلم البرمجة بلغة C / C++ - 1
1- Languages Basics
1- Languages Basics
Nxt 2.0 programming
Nxt 2.0 programming
C++
C++
C++
C++
Photoshop cs Ch2 بالعربي
Photoshop cs Ch2 بالعربي
الجزء العملى فى منهج الصف الثالث الإعدادى Visual Basic.Net 2005
الجزء العملى فى منهج الصف الثالث الإعدادى Visual Basic.Net 2005
14th session python fifth gui
14th session python fifth gui
7 functions
7 functions
Loops
Loops
ملخص البرمجة المرئية - 1377
ملخص البرمجة المرئية - 1377
العروض التقديمية
العروض التقديمية
أريد تعلم البرمجة لكنني لا أعرف من أين أبدأ.pdf
أريد تعلم البرمجة لكنني لا أعرف من أين أبدأ.pdf
Raspberrypi احترف راسبيري باي القرية الهندسية
Raspberrypi احترف راسبيري باي القرية الهندسية
C++ function (1) c++2
C++ function (1) c++2
الدليل العلمي لنظام الدي سبيس
الدليل العلمي لنظام الدي سبيس
Loops
Loops
البرمجة | أقوي مجالات العمل والربح من الانترنت..دليلك نحو الاحتراف
البرمجة | أقوي مجالات العمل والربح من الانترنت..دليلك نحو الاحتراف
برمجة الرسوم بلغة السي بلس بلس المرحلة الثالثة
1.
رقم الجزء(2م )نبلغة
المفتوحة البرمجة سلسلةCباستخدامTurbo CPP 3.0 :بتاريخ النسخة هذه12/11/2007 المحسنة سي بلغة الرسم برمجة الول الجزء TURBO C PLUS PLUS 3.0 باستخدام الرملي الرؤوف عبد البراء :برمجة ليبيا / طرابلس
2.
© نسخة2007,محفوظة الطبع
حقوقSBR Software Bara Ramli (SBR) مسبق خطي بإذن إل الكتاب هذا طبع بإعادة يسمح ل .المؤلف من الستعمال نطاق في تصويره و بنسخه يسمح بينما بأنك الدعاء يمكنك ل ولكن , )تجاري (الغير الشخصي .الصلي لمؤلفه الشارة وعليك العمل بهذا قام من أي دون من هو كما الكتاب هذا يقدم :ملاحظة .لمحتوياته ضمان أو كفالة All programs in this book is free software: you ca n re dis tr ibu te it and/ or mod ify it unde r th e te rms of th e GNU Ge ne ra l Public Licen se as publ ish ed by the Free Sof tw ar e Fo un da ti on , ei th er ver si on 3 of th e Lic en se, any lat er ver si on . Thi s prog ram is dist ri but ed in th e ho pe th at it wi ll be u se fu l, but W ITHO UT AN Y WARRA NT Y; wit ho ut eve n th e im plie d warr an ty of ME RCH AN TA BI LIT Y or FI TN ESS FOR A PART ICUL AR PURPOS E. Se e th e GNU Ge ne ra l P ublic Lice nse for more det ails . Yo u sh ou ld hav e re ce iv ed a cop y of th e GN U Ge ne ra l Publi c Lic en se alon g w ith t his prog ram . If not , see <http://www.gnu.org/licenses/>.
3.
مجاني الكتاب هذا مقدمة على
ويحتوي الرسم برمجة كتاب إليكم أقدم مكتبة لدوال شرح مع الشاشة على الرسم أساسيات الرسمgraphics.h في منا مساهمة يكون وأن به ينفع أن الله أرجو .العربي والمبرمج العربية المكتبة إثراء مع مرفقة , المعروضة والبرامج المكتبات :ملاحظة .)(المرفقات مجلد في الكتاب المعروضة والمكتبات البرامج أن على أنبه أن وأريد ,وإضافات تطوير إلى تحتاج زالت ل , السلسلة هذه في إلى بها نصل حتى جميعا عاتقنا على يقع وهذا لتضيف يديك بين الن فهي لذا , المطلوب المستوى تقوم ثم ومن الفضل إلى بها يرقى أنه تظن ما إليها نتشارك لم ما لنه , جميعا لنا الفائدة لتعم بنشرها .المام إلى خطوة نتقدم فلن , بأفكارنا الرملي الرؤوف عبد البراء opencpp@yahoo.com طرابس/ليبيا :موقعي زيارة يمكنكwww.khayma.com/opencpp
4.
المحتويات الفهرس أساسية مفاهيم مكتبة في
الموجودة الرسم دوال /الول الفصلgraphics.h الهندسية الشكال /الثاني الفصل الهندسية الشكال تلوين /الثالث الفصل
5.
أساسية مفاهيم
6.
إعدادTURBO CPP 3.0الرسم
لبرامج على اضغطOptionsثمLinkerثمLibraries اخترGraphics libraryاضغط ثمok
7.
الرسم شاشة شكل :تعلم
أن يجب 1.إلى أفقيا قسمت الشاشة أن640( نقطةpixelإلى ورأسيا )470( نقطةpixelوتكون ,) = الصورة دقة480×640 2.( والـpixel( للعبارة مختصر وهي الشاشة على إضاءتها يمكن نقطة أصغر هي )picture cell). 3..الشاشة أعلى اليسر الركن في تقع الصل نقطة 4.(محور الفقي المحورX.اليمين إلى اليسار من يزداد ) 5.(محور الرأسي المحورY.أسفل إلى أعلى من يزداد ) :ملاحظة الفيديو كارت مع البرامج تعملVGAحدود عن يخرج قد الرسم فإن آخر كارت استخدمت فإذا , .الشاشة
8.
/الول الفصل مكتبة في
الرسم دوالgraphics
9.
الرسم لبرامج العام
الشكل :رسم برنامج كل في بالحمر الملونة النصوص كتابة يجب #include <stdio.h> #include <conio.h> #include <graphics.h> void main)( { int gdriver = DETECT, gmode, errorcode; initgraph)&gdriver, &gmode, "c:tcbgi"(; ……………………………. ……………………………. ……………………………. (هنا تكتب الرسم )دوال ……………………………. ……………………………. ……………………………. getch)(; } الرسم مكتبة استدعاء الرسم كارت على للتعرف تؤدي الموجود الدالة هذه استدعاء بمجرد استقبال على قادر الجهاز يصبح المختلفة الرسم دوال من .الوامر الممر اسم كتابة يجب :تنبيه c:tcbgi مكان حسب علىTURBO C.الصلب القرص في ++ لحين الشاشة على الصورة تثبيت زر أي على الضغط
10.
مكتبة في الموجودة
)الرسم (دوال بأسماء قائمةgraphics.hوهي83.دالة وهي البنفسجي باللون مظللة )والثاني الول (بجزئيه الكتاب في الموجودة الدوال35دالة arc imagesize bar initgraph bar3d installuserdriver circle installuserfont cleardevice line clearviewport linerel closegraph lineto detectgraph moverel drawpoly moveto ellipse outtext fillellipse outtextxy fillpoly pieslice floodfill putimage getarccoords putpixel getaspectratio rectangle getbkcolor registerbgidriver getcolor registerfarbgidriver getdefaultpalette registerbgifont getdrivername registerfarbgifont getfillpattern restorecrtmode getfillsettings sector getgraphmode setactivepage getimage setallpalette getlinesettings setaspectratio getmaxcolor setbkcolor getmaxmode setcolor getmaxx setfillpattern getmaxy setfillstyle getmodename setgraphbufsize getmoderange setgraphmode getpalette setlinestyle getpalettesize setpalette getpixel setrgbpalette gettextsettings settextjustify getviewsettings settextstyle getx setusercharsize gety setviewport graphdefaults setvisualpage grapherrormsg setwritemode _graphfreemem textheight _graphgetmem textwidth graphresult
11.
العامة الرسم دوال
بعض /الكتابة نسق إلى الرسم نسق من للخروج دالةclosegraph .الرسم برنامج نهاية بعد عادة وتكتب ,العادية الكتابة نافذة إلى والعودة الرسم نافذة لغلاق تؤدي Closegraph)(; الدالة عكس وهي initgraph)&gdriver, &gmode, "c:tcbgi"(; .الرسم نافذة لفتح تؤدي التى /الشاشة مسح دالةcleardevice :الدالة هذه بإدراج الشاشة مسح يمكنك cleardevice )(; دالة تقابل وهي clrscr)(; أن غير العادية الكتابة شاشة (مسح :إلى تؤدي التىclrscr.)الرسم بيئة مع تستخدم ل /الشاشة سيني إحداثي أقصى على للحصول دالةgetmaxx يساوي وهو ,الشاشة على السيني للإحداثي قيمة أقصى الدالة ترجع640. ( رقم الدالة ترجع :تنبيه640الصحيح للمتغير وتخصصه )m.مثلا m=getmaxx)(; للشاشة صادي إحداثي أقصى على للحصول دالة/getmaxy يساوي وهو ,الشاشة على الصادي للإحداثي قيمة أقصى الدلة ترجع480. ( رقم الدالة ترجع :تنبيه480الصحيح للمتغير وتخصصه )m.مثلا m=getmaxy)(;
12.
/الثاني الفصل الهندسية الشكال
13.
/مستقيم خط رسم
دالةline على تحتوي4( الولى النقطة إحداثي :هم عددية متغيراتx1,y1الخيرة النقطة وإحداثي ) (x2,y2.) .عشرية كسور أو صحيحة متغيرات الحداثيات تكون أن يمكن :ملاحظة line)x1,y1,x2,y2(; البرنامج تنفيذ عند الشاشة في سيظهر ما هو البيض باللون المرسوم #include <stdio.h> #include <conio.h> #include <graphics.h> void main)( { int x1=50 ,y1=20; int x2=200,y2=100; int gdriver = DETECT, gmode, errorcode; initgraph)&gdriver, &gmode, "c:tcbgi"(; line)x1,y1,x2,y2(; getch)(; }
14.
/دائرة رسم دالةcircle على
تحتوي3( المركز إحداثي :هم عددية متغيراتx,yالقطر ونصف )r. تكون أن يمكن :ملاحظةx,y,z.عشرية كسور أو صحيحة متغيرات circle)x,y,r(; البرنامج تنفيذ عند الشاشة في سيظهر ما هو البيض باللون المرسوم #include <stdio.h> #include <conio.h> #include <graphics.h> void main)( { int x=150,y=80,r=10; int gdriver = DETECT, gmode, errorcode; initgraph)&gdriver, &gmode, "c:tcbgi"(; circle)x,y,r(; getch)(; }
15.
/نقطة رسم دالةputpixel على
تحتوي3( النقطة إحداثي :هم عددية متغيراتx1,y1ثالث ومتغير )h,النقطة لون هوضع من مرتبة اللوان ,المظلل المكان في اللون رقم0إلى15. .)اللون تغيير (دالة معهم نستخدم لذا للون متغير بها يوجد فلا الدوال باقي أما .عشرية كسور أو صحيحة متغيرات )النقطة (إحداثيات يكون أن يمكن :ملاحظة Putpixel)x,y,h(; البرنامج تنفيذ عند الشاشة في سيظهر ما هو البيض باللون المرسوم #include <stdio.h> #include <conio.h> #include <graphics.h> void main)( { int x=45,y=60,h=15; int gdriver = DETECT, gmode, errorcode; initgraph)&gdriver, &gmode, "c:tcbgi"(; putpixel)x,y,h(; getch)(; }
16.
/دائرية أقواس رسم
دالةarc )midx, midy(=المركز إحداثي stangle= ) 1(Ф البدء زاوية endangle= ) 2(Ф النهاية زاوية radius=القطر نصف arc)midx, midy, stangle, endangle, radius(; البرنامج تنفيذ عند الشاشة في سيظهر ما هو البيض باللون المرسوم #include <stdio.h> #include <conio.h> #include <graphics.h> void main)( { int midx=320, midy=240, stangle = 45; int endangle = 135, radius = 100; int gdriver = DETECT, gmode, errorcode; initgraph)&gdriver, &gmode, "c:tcbgi"(; arc)midx, midy, stangle, endangle, radius(; getch)(; }
17.
/ناقص قطع رسم
دالةellipse )midx, midy(=المركز إحداثي stangle= ) 1(Ф البدء زاوية endangle= ) 2(Ф النهاية زاوية xradius= x الجداثي قطر نصف yradius= y الجداثي قطر نصف ellipse)midx, midy, stangle, endangle, xradius, yradius(; البرنامج تنفيذ عند الشاشة في سيظهر ما هو البيض باللون المرسوم #include <stdio.h> #include <conio.h> #include <graphics.h> void main)( { int midx=320, midy=240, stangle = 45; int endangle = 180, xradius = 70, yradius = 30; int gdriver = DETECT, gmode, errorcode; initgraph)&gdriver, &gmode, "c:tcbgi"(; ellipse )midx, midy, stangle, endangle,xradius,yradius(; getch)(; }
18.
/مستطيل رسم دالةrectangle إحداثياليسر
الركن(=A,B) اليمن الركن إحداثي=(W,Z) rectangle)A,B,W,Z(; البرنامج تنفيذ عند الشاشة في سيظهر ما هو البيض باللون المرسوم #include <stdio.h> #include <conio.h> #include <graphics.h> void main)( { int a=10,b=20,w=150,z=200; int gdriver = DETECT, gmode, errorcode; initgraph)&gdriver, &gmode, "c:tcbgi"(; rectangle)a,b,w,z(; getch)(; }
19.
/المضلعة الشكال رسم
دالةdrawpoly هي النقاط مصفوفة اسمpعدد على وتحتويn.النقاط من drawpoly)n,p(; البرنامج تنفيذ عند الشاشة في سيظهر ما هو البيض باللون المرسوم #include <stdio.h> #include <conio.h> #include <graphics.h> void main)( { int p[6]; int gdriver = DETECT, gmode, errorcode; initgraph)&gdriver, &gmode, "c:tcbgi"(; p[0]=10;p[1]=15; p[2]=100;p[3]=200; p[4]=200;p[5]=250; drawpoly)3,p(; getch)(; }
20.
/الثالث الفصل الهندسية الشكال
تلوين
21.
/ الرسم خط
نوع تغيير دالةsetlinestyle :حيث المرسومة الشكال السطح ونوع لون تغيير يمكنك aمن صحيح عدد1إلى4. الخط لنوع ويرمز bمن صحيح عدد0إلى12.السطح للون ويرمز cإما صحيح عدد1أو عادي خط3.سميك خط Setlinestyle)a,b,c(; :ملاحظة,)الرسم (دالة قبل )الدالة (هذه تكتب أن يجب.تلقائيا أبيض سيكون السطح لون فإن اللون تغير دالة تستعمل لم وإذا /الرسم لون تغير دالةSetcolor الدالة باستخدام الرسم لون تحديد يمكنكsetcolorالدالة قوسي بين اللون رقم بإدراج وذلك :المظلل المكان في setcolor) 15 (; 012345 أسودأزرقأخضركحليأحمربنفسجي 67891011 بنيفاتح رصاصيغامق رصاصيفاتح أزرقفاتح أخضرفاتح كحلي 12131415 فاتح أحمرفاتح بنفسجيأصفرأبيض :ملاحظة,)الرسم (دالة قبل )الدالة (هذه تكتب أن يجب.تلقائيا أبيض سيكون الرسم لون فإن اللون تغير دالة تستعمل لم وإذا /الشاشة خلفية لون تغير دالةsetbkcolor الدالة باستخدام الخلفية لون تحديد يمكنكsetbkcolorقوسي بين اللون رقم بإدراج وذلك :المظلل المكان في الدالة setbkcolor) 4 (; :ملاحظة,)الرسم (دالة قبل )الدالة (هذه تكتب أن يجب.تلقائيا أسود سيكون الخلفية لون فإن اللون تغير دالة تستعمل لم وإذا /الخلفية لون على للحصول دالةgetbkcolor .الخلفية للون العددية القيمة على الحصول من تمكنك ( رقم الدالة ترجع فسوف ,السود هو الخلفية لون كان لو :مثلا0للمتغير وتخصصه )m.)مثلا :) m=getbkcolor)(;
22.
/الرسم خط لون
على للحصول دالةgetcolor .الرسم للون العددية القيمة على الحصول من تمكنك ( رقم الدالة ترجع فسوف ,الحمر هو الرسم لون كان لو :مثلا5للمتغير وتخصصه )m.)مثلا :) m=getcolor)(; /الهندسية الشكال لتلوين دالةfloodfillالتعبئة ونوع لون لتحديد وأخرىsetfillstyle حيثAبينما التعبئة لون هوSOILD_FILL."مصمته النوع هذا "وفي التعبئة فنوع setfillstyle)SOLID_FILL,A(; .مباشرة الدالة هذه بعد تعبئته المراد الشكل رسم يجب :تنبيه الدالة باستخدام الشطل داخل اللون بصب نقوم ذلك بعد ومنfloodfill ( حيث ,مغلق شكل داخل اللون لصبG,F.المغلق الشكل داخل تقع نقطة إحداثيات ) بينماC.بداخله اللون صب المراد الشكل حدود لون هو floodfill)G,F,C(; ....والمستطيل والمربع والمثلث الدائرة :مثل المغلقة الهندسية الشكال لتلوين الدالة هذه تستعمل .بالكامل الشاشة تلوين إلى المغلقة الشكال غير مع استعمالها ويؤدي .)الرسم (دالة بعد )الدالة (هذه تكتب أن يجب :تنبيه /اللوان سلسلة في لون آخر على للحصول دالةgetmaxcolor ترجع فسوف ,السود هو الرسم لون كان لو :مثلا ,لون لخر العددية القيمة على الحصول من تمكنك ( رقم الدالة15للمتغير وتخصصه )m.)مثلا :) m=getmaxcolor)(;
23.
.وتلوينه مستطيل لرسم
برنامج :مثال :المستطيل أركان حيث إحداثيللمستطيل اليسر الركن(=A,B) للمستطيل اليمن الركن إحداثي=(W,Z) إحداثي بينماالمستطيل داخل نقطة(=G,F) البرنامج تنفيذ عند الشاشة في سيظهر ما هو البيض باللون المرسوم #include <stdio.h> #include <conio.h> #include <graphics.h> void main)( { int a=100,b=200,w=200,z=300,G=150,F=250; int gdriver = DETECT, gmode, errorcode; initgraph)&gdriver, &gmode, "c:tcbgi"(; setfillstyle)SOLID_FILL,14(; setcolor)15(; rectangle)a,b,w,z(; floodfill)G,F,15(; getch)(; } الثاني الجزء يتبع
Baixar agora