quiz Informatyka · 19 questions

Fundamentals of Computer Graphics

help_outline 19 questions
timer ~10 min
auto_awesome AI-generated
0 / 19
Score : 0%
1

Which characteristic distinguishes vector graphics from raster graphics regarding image scaling?

2

A 1920×1080 display has how many pixels in total?

3

In the RGB color model, which combination of primary colors yields yellow?

4

Which file format uses lossless compression and is widely supported by web browsers?

5

What is the primary disadvantage of raster graphics when enlarging an image?

6

In the CMYK color model, which component is designated by the letter 'K'?

7

Which compression method encodes consecutive identical pixels as a count-value pair?

8

When using the HSV color model, what does the 'S' component represent?

9

Which of the following best describes a bitmap image file?

10

What is the effect of increasing the bit depth per pixel from 16 bits to 24 bits?

11

Which format is specifically designed for storing layered images and supports lossless compression?

12

In the context of digital image processing, which operation converts a color image to a binary (black-and-white) image?

13

Which statement accurately reflects the relationship between true color and human visual perception?

14

When rendering a 3D model, which process converts the geometric data into a 2D image?

15

Which compression type reduces file size by discarding less noticeable details?

16

What is the primary purpose of the HSV color model's 'Value' component?

17

In a GIF file, how many colors can be indexed in its color table?

18

Which of the following best describes the effect of increasing the frame rate (FPS) in motion graphics?

19

What is the main advantage of using the indexed color mode over direct color mode for certain images?

menu_book

Fundamentals of Computer Graphics

Review key concepts before taking the quiz

Fundamentals of Computer Graphics: Core Concepts and Practical Insights

Computer graphics is a broad field that blends art, mathematics, and computer science to create visual content for screens, prints, and interactive media. Whether you are a budding designer, a software developer, or an enthusiast, mastering the basic terminology and techniques is essential. This course distills the most frequently asked quiz topics into clear, SEO‑friendly explanations, helping you understand vector vs. raster graphics, color models, file formats, and common compression methods.

1. Vector and Raster Graphics – Understanding Image Scaling

One of the first distinctions learners encounter is the difference between vector and raster graphics. Both serve unique purposes, and knowing when to use each can dramatically affect the quality and performance of your projects.

1.1 What Makes Vector Graphics Scalable?

Vector graphics are defined by mathematical equations—points, lines, curves, and shapes—rather than individual pixels. Because these equations can be recalculated at any size, a vector image can be enlarged without any loss of quality. This property makes vectors ideal for logos, icons, and typography that must appear crisp on everything from business cards to billboards.

1.2 Raster Graphics and the Pixel Limitation

Raster graphics, on the other hand, store color information for each individual pixel. When you enlarge a raster image, the software must stretch existing pixels, leading to visible pixelation and loss of sharpness. This is why photographs and complex textures are typically raster, while simple geometric designs favor vectors.

  • Key takeaway: Vector graphics can be enlarged without quality loss, whereas raster graphics become pixelated when scaled up.

2. Calculating Pixel Count – The Mathematics of Resolution

Resolution is expressed as the number of pixels along the horizontal and vertical axes. To determine the total pixel count, simply multiply the width by the height.

2.1 Example: 1920×1080 Display

A common Full HD screen measures 1920 pixels wide and 1080 pixels tall. Multiplying these dimensions yields:

1920 × 1080 = 2,073,600 pixels. This figure is often quoted as "2.07 million pixels" and is a standard benchmark for high‑definition video and gaming.

  • Why it matters: Knowing pixel count helps you estimate file sizes, choose appropriate image resolutions for web, and understand the visual fidelity of displays.

3. Color Models – From RGB to CMYK and HSV

Color models define how colors are represented digitally. Each model serves a specific workflow, whether you are designing for screens, print, or interactive applications.

3.1 RGB (Red, Green, Blue)

The RGB model is additive: colors are created by combining light of the three primary colors. When red and green light are mixed at full intensity, the result is yellow. This principle underlies all monitors, televisions, and web graphics.

  • RGB example: Red (255,0,0) + Green (0,255,0) = Yellow (255,255,0).

3.2 CMYK (Cyan, Magenta, Yellow, Key/Black)

CMYK is a subtractive model used in printing. Ink absorbs (subtracts) light, and the combination of cyan, magenta, and yellow produces a wide gamut of colors. The "K" stands for Key, which traditionally represents black ink. Black is treated as a separate key plate because it provides depth and contrast without contaminating the other colors.

  • Key insight: In CMYK, "K" = black, not a primary color.

3.3 HSV (Hue, Saturation, Value)

HSV is a cylindrical representation that aligns more closely with human perception of color. The "S" component stands for Saturation, describing the intensity or purity of a hue. A fully saturated color is vivid, while lower saturation yields a more muted, pastel tone.

  • Practical use: Adjusting saturation is common in photo editing to enhance or tone down colors without altering hue or brightness.

4. File Formats – Choosing the Right One for the Job

Digital images come in many formats, each with its own compression method and intended use case. Understanding these differences ensures optimal quality and performance.

4.1 PNG – The Lossless Champion

Portable Network Graphics (PNG) employs lossless compression, meaning no image data is discarded during saving. This makes PNG ideal for graphics that require crisp edges, transparency, or repeated use on the web (e.g., icons, logos, UI elements). While PNG files are typically larger than JPEGs, the trade‑off is a perfect reproduction of the original image.

  • Key advantage: Supports true alpha transparency and retains full image quality.

4.2 JPEG – When Size Trumps Perfection

JPEG uses lossy compression, discarding some visual information to achieve dramatically smaller file sizes. It excels with photographs where minor artifacts are less noticeable, but it is unsuitable for images that need sharp lines or transparency.

5. Compression Techniques – From RLE to Advanced Algorithms

Compression reduces file size, making storage and transmission more efficient. Two broad categories exist: lossless (no data loss) and lossy (some data discarded).

5.1 Run‑Length Encoding (RLE)

RLE is a simple lossless method that encodes consecutive identical pixels as a count‑value pair. For example, a row of ten white pixels could be stored as "10W" instead of ten separate entries. RLE works best with images that contain large uniform areas, such as simple graphics or icons.

  • When to use: Bitmap fonts, monochrome images, and certain video codecs.

5.2 Other Methods (Brief Overview)

More sophisticated techniques like LZW (used in GIF), Huffman coding, and JPEG quantization provide higher compression ratios but often involve more complex processing.

6. Practical Tips for Working with Graphics

  • Choose the right format: Use PNG for logos and UI elements, JPEG for photographs, and SVG (a vector format) for scalable icons.
  • Mind the resolution: Match image dimensions to the target display. A 1920×1080 display benefits from assets at or near that resolution to avoid scaling artifacts.
  • Leverage color models appropriately: Design in RGB for screen, convert to CMYK for print, and use HSV for intuitive color adjustments.
  • Compress wisely: Apply lossless compression (PNG, RLE) when quality is paramount; opt for lossy compression (JPEG) when bandwidth is limited.

7. Frequently Asked Questions (FAQ)

Can I convert a raster image to a vector without losing quality?

Conversion is possible using tracing tools, but the result depends on the image complexity. Simple shapes convert well; detailed photographs usually do not retain the same fidelity.

Why does enlarging a JPEG cause blurriness?

JPEG already discards some detail during compression. When you upscale, the algorithm must interpolate missing pixels, amplifying the loss and creating a blurry appearance.

Is PNG always larger than JPEG?

Generally, yes, because PNG retains all original data. However, for images with large uniform areas or transparency, PNG can be comparable or even smaller than a heavily compressed JPEG.

How does saturation affect color perception?

Higher saturation yields vivid, intense colors, while lower saturation moves colors toward gray, creating a muted or pastel effect. Adjusting saturation is a key tool in photo editing and UI design.

Conclusion – Building a Strong Foundation in Computer Graphics

Understanding the fundamentals—how vector and raster graphics behave, how to calculate pixel counts, the nuances of RGB, CMYK, and HSV color models, the strengths of PNG, and the basics of Run‑Length Encoding—provides a solid base for any digital visual work. By applying these concepts, you can make informed decisions that balance quality, file size, and performance across web, print, and interactive media.

Continue exploring advanced topics such as anti‑aliasing, gamma correction, and modern codecs to deepen your expertise and stay ahead in the ever‑evolving world of computer graphics.

Stop highlighting.
Start learning.

Join students who have already generated over 50,000 quizzes on Quizly. It's free to get started.