Graphics programming in c in Hindi
Graphics C Programming in Hindi:
Introduction of graphics in c language in Hindi:
c graphics का उपयोग अलग-अलग प्रकार के shapes को draw करने
के लिए किया जाता है जैसे - line , circles , Bars आदि
का निर्माण करने के लिए किया
जाता है Graphics c का उपयोग animation projects , game ,तथा Graphical User Interface (GUI) application का निर्माण करने
के लिए किया जाता है किसी भी
text को
अलग -अलग font तथा color में
बदलने के लिए graphics
c programming का उपयोग कर
सकते है सामान्य रूप
से c language का
आउटपुट "text mode"
मैं होता है | हमें अलग - अलग प्रकार के shapes को draw करने
से पहले आउटपुट को Graphic mode में बदलना पड़ता है graphics design
करने से पहले हमें "graphics.h" हैडर फाइल को include करने पड़ता है|
Features of graphics c programming in Hindi:
मैं
आपको बताऊगा की graphics c programming की क्या-क्या विशेषताएं
होती है मैं आपको Hindi मैं बहुत आसान तरीके से बताने की
कोसित करुँगा जिसके सहायता से आप आसानी
से graphics c
programming के बारे में जान सकेंगे |
c language में
ऐसी कई विशेषताएं है
जिसके कारण graphics c
programming का उपयोग कई तरह के
कार्यो के लिए किया
जाता है |
- . Graphics c programming का उपयोग game बनाने के लिए किया जाता है |
- अलग-अलग shapes का निर्माण करने के लिए graphics c programming का प्रयोग किया जाता है |
- Graphics c programming की सहायता से applications का निर्माण किया जाता है |
- अलग -अलग तरह के color तथा background को set करने के लिए graphics c programming का प्रयोग किया जाता है |
- Animated graph का निर्माण करने के लिए graphics c programming का प्रयोग किया जाता है |
Initialize the graphics programming in c:
दोस्तों graphics को program में include करने के लिए कई
तरह के कार्य किये
जाते है जिन्हे निम्न
steps में defined किया गया है |
1. पहले
step में graphics.h
header file को
include किया जाता है |
जैसे
- #include<graphics.h >
2 .इसके
बाद graphics driver को अपने program में
lode किया जाता है | जिसको निम्न प्रकार से defined कर सकते है
|
जैसे
- int gd=DETECT,gm ;
यहाँ
पर gd और gm integer type के variable है gd का प्रयोग ग्राफ़िक
driver को initialize
करने के
लिए किया गया है DETECT graphics.h
के
अंतर्गत पहले से defined एक macro है और यहाँ
पर gm के सहायता से
graphics mode को
initialize किया गया है |
Initialize the graphics in Hindi:
दोस्तों graphics को program में include करने के लिए कई
तरह के कार्य किये
जाते है जिन्हे निम्न
steps में defined किया गया है |
- 1. पहले step में "graphics.h" header file को include किया जाता है |
- 2 .इसके बाद graphics driver को अपने program में lode किया जाता है | जिसको निम्न प्रकार से defined कर सकते है |
यहाँ पर gd और gm integer type के variable है gd का प्रयोग ग्राफ़िक driver को initialize करने के लिए किया गया है DETECT graphics.h
के अंतर्गत पहले से defined एक macro है और यहाँ पर gm के सहायता से graphics modeको initialize किया गया है|
- 3 . graphics driver को lode करने के लिए उसका address defined काना होता है जिससे graphics driver को program में प्रयोग किया जा सके graphics driver को computer से program में initialize किया जाता है | जिसके लिए "initgraph" फंक्शन का प्रयोग किया जाता है|
- 4 . initgraph()- Graphics को computer से अपने program में initialize करने के लिए initgraph() function का प्रयोग किया जाता है|
यहाँ पर gd graphic driver का path है और gm के सहायता के graphics mode को initialize किया है तथा इसके बाद BGI folder का address दिया गया है जहाँ graphics से सम्बंधित information store रहती है |
- 5 . closegraph ()-यहाँ पर open किये गए graphcs mode से बाहर आने के लिए "closegraph()" function का प्रयोग किया जाता है |
Graphics program in c language in Hindi
#include<graphics.h>
#include<conio.h>
Void
main()
{
Int gd=DETECT , gm;
initgraph
( & gd , & gm , “C\\TC \\ BGI”);
getch();
closegraph();
}
दोस्तो अब
हम दिए गए program के output के बारे में बात करेंगे उपरोक्त प्रोग्राम में सबसे पहले
graphics.h हैडर फाइल को include किया गया है और प्रोग्राम को graphics mode में
initialize किया गया है और graphics driver तथा graphics mode को integer type
defined किया गया है initgraph() function की सहायता से graphics को अपने प्रोग्राम
में सम्लित किया गया है getch() function की सहायता से key को control किया गया है
और graphics mode को बंद करने के लिए closegraph() function का उपयोग किया गया है
|
Graphics function in c language in Hindi:
line();
bar();
circle();
rectangle();
ellipse();
getcolor();
getmaxcolor();
getmaxx();
getmaxy();
outtextx();
outtexty();
outtextxy();
setbkcolor();
setfillstyle();
Conclusion:
दोस्तो यदि आपको हमारा
यह post अच्छा लगा हो तो आप हमें comments करके बता सकते हो आपको हमने graphics c programming in hindi में पूरी तरह बताया
है अगर दोस्तो आपको कोई problem होती है तो आप हमे comment कर के बता सकते है धन्यवाद
दोस्तो हमारी इस website को विजिट करने के लिए |
vey nice
ReplyDelete1 no. Bhai Maja aa gya😀😀😀
ReplyDeleteVery nice
ReplyDeleteThanks
DeleteThank you 🙏
ReplyDelete