Theory
एक Picture Represent करने के दो तरीके
सबसे deepest level पर, एक computer में एक image represent करने के दो तरीके हैं, और यह choice हर चीज़ के through चलती है: file formats, displays, और आप कैसे draw करते हैं। या तो आप हर pixel का colour record करते हैं (raster), या आप वे shapes जो image बनाते हैं record करते हैं (vector)।
आप इसे files और displays के साथ glimpse कर चुके हैं; यह lesson इसे core paradigm की तरह state करता है। Raster graphics pixels है; vector graphics geometric objects है। हर एक अलग content के लिए powerful है, और trade-off समझना पूरे subject के लिए fundamental है।
Theory
Raster: Pixels की एक Grid
Raster graphics (bitmap भी कहा जाता है) एक image को pixels की एक grid की तरह represent करता है, हर एक एक colour store करते हुए। Image literally coloured dots का एक rectangle है।
क्योंकि इसमें pixels की एक fixed number है, raster resolution-dependent है: इसे इसके native size से आगे scale up करना pixels stretch करता है और quality degrade करता है (blur या blockiness)। इसका memory use resolution के साथ बढ़ता है (ज़्यादा pixels, बड़ा data)। पर raster photographs और continuous-tone images में excel करता है, जहाँ colour point से point subtly vary करता है, exactly वह जो independently coloured pixels की एक grid capture करती है। Cameras, scanners, और screens सब raster हैं।
Theory
Vector: Geometric Objects
Vector graphics एक image को geometric primitives की तरह represent करता है, points, lines, curves, और shapes, mathematically defined (coordinates और equations से), colour और fill जैसे attributes के साथ।
क्योंकि image mathematical descriptions का एक set है, यह resolution-independent है: यह किसी भी size पर बिना quality loss के redraw हो सकता है, और simple graphics की small files होती हैं। Vector line art, logos, diagrams, और fonts में excel करता है, clean shapes से बनी कोई भी चीज़ जो किसी भी scale पर crisp रहनी चाहिए। यह photographs के लिए कम suited है, जिनका subtle detail shapes की तरह express करना hard है। तो vector perfect scalability के लिए photographic richness trade करता है।
At a glance
| Aspect | Raster Graphics | Vector Graphics |
|---|---|---|
| Represents करता है | Coloured pixels की एक grid | Geometric objects (lines, curves, shapes) |
| Resolution | Dependent (fixed pixels) | Independent (freely scale होता है) |
| Scale Up करना | Degrade होता है (blur/blocky) | Sharp रहता है |
| Best For | Photographs, continuous-tone images | Line art, logos, diagrams, fonts |
Quiz
कौन सा statement raster को vector graphics से correctly distinguish करता है?
- Raster geometric shapes store करता है; vector pixels store करता है
- Raster pixels की एक grid store करता है (resolution-dependent); vector mathematically defined geometric objects store करता है (resolution-independent)
- दोनों resolution-independent और identical हैं
- Vector सिर्फ़ photographs के लिए है
Show the answer
Raster pixels की एक grid store करता है (resolution-dependent); vector mathematically defined geometric objects store करता है (resolution-independent)
Raster graphics image को coloured pixels की एक grid की तरह store करता है और resolution-dependent है (एक fixed pixel count, तो यह scale up होने पर degrade होता है), जबकि vector graphics mathematically defined geometric objects store करता है और resolution-independent है (बिना quality loss के किसी भी size में scale होता है)। Option A दोनों को reverse करता है। Option C गलत है: ये identical NAHI हैं, raster resolution-dependent है, vector नहीं है, जो पूरा distinction है। Option D backwards है: vector line art, logos, और diagrams को suit करता है; PHOTOGRAPHS raster की तरह better हैं। Pixels (raster) versus objects (vector), और उसके follow करने वाला resolution behaviour, core difference है।
Think first
यह Raster-vs-Vector Idea Files, Displays, और Drawing से कैसे Connect होता है?
आप files के लिए, displays के लिए, और अब एक paradigm की तरह raster vs vector से मिले हैं। ये कैसे साथ जुड़ते हैं? फिर tap कीजिए।
Show the answer
ये सब SAME underlying pixels-versus-objects distinction हैं, graphics pipeline के अलग layers पर appear होते हुए, यही वजह है idea बार-बार लौटता है। REPRESENTATION level पर (यह lesson), एक image या तो pixels की एक grid है (raster) या geometric objects का एक set है (vector)। वह choice directly FILE FORMATS में flow करती है: raster representations bitmap files जैसे JPEG और PNG में stored हैं, जबकि vector representations SVG और EPS जैसी files में stored हैं, तो file बस record करती है image किस form में है। यह DISPLAYS से भी connect होता है: एक raster-scan display naturally pixels के एक frame buffer refresh करके raster images दिखाता है, जबकि एक random-scan (vector) display naturally strokes trace करके vector line-art draw करता है, हर display technology एक representation से match करती है। और यह DRAWING को shape करता है: dominant raster displays पर, एक vector shape को भी screen पर दिखने के लिए ultimately pixels में convert करना पड़ता है, जो exactly वह है जो line-drawing algorithms (DDA, Bresenham) और shape-drawing algorithms करते हैं, ये geometric objects को RASTERISE करके pixel grid में डालते हैं। तो paradigm subject को unify करता है: आप अक्सर graphics को vectors की तरह DESCRIBE करते हैं (clean, scalable objects) क्योंकि वह efficient और editable है, पर आप इन्हें raster devices पर DISPLAY करते हैं, तो computer को rasterise करना पड़ता है, objects को right pixels में बदलना पड़ता है। यह समझना कि images को pixels की तरह या objects की तरह सोचा जा सकता है, और हम routinely इनके बीच convert करते हैं, वह conceptual spine है जिस पर इस course का बाकी हिस्सा build करता है। एक distinction, images के represent, store, display, और draw होने के तरीके में दिखते हुए।
Summary
Key takeaways
- एक image represent करने के दो core तरीके हैं: raster (pixels) या vector (geometric objects)।
- Raster graphics coloured pixels की एक grid store करता है; यह resolution-dependent है, तो scale up quality degrade करता है।
- Raster photographs और continuous-tone images में excel करता है; इसकी memory resolution के साथ बढ़ती है।
- Vector graphics mathematically defined geometric primitives (lines, curves, shapes) store करता है; यह resolution-independent है।
- Vector बिना quality loss के किसी भी size में scale होता है और line art, logos, diagrams, और fonts को suit करता है; photos के लिए कम suited।
- यह pixels-vs-objects distinction file formats, display types, और raster screens पर vectors को rasterise करने की ज़रूरत के नीचे है।
- Memory hook: raster pixels है (fixed, photo-friendly), vector objects है (scalable, shape-friendly)।